I use the small case of model name as table name, that is, if the model name is OrderInfo, then the table name is orderinfo. So I didn't override the method getSource() and all models had been working well.
But in phpunit tests, all models started to fetch meta data of tables whose names are in a form like 'order_info'. When I overrided the model's getSource() method, it worked well again.
I use phalcon 1.2.4, what's the principle when phalcon gets the table name of a model, and what can I do ?
Thanks.