Hello, I have a model called Address. I created a table in my db called test_address and added the setSource("test_address"); I also set the getSource() to return "test_address";
At this point, Find and FindFirst all work correctly!
I created a Builder new \Phalcon\Mvc\Model\Query\Builder();
I created a query with a model, the model has set source with a prefix. When I use ->getSql() on the builder query, the Raw SQL shows the prefix. If I run the query without paginator, everything is still fine!
As soon as I add it to the paginator the "prefix" is gone, as if it is not checking the getSource...
$paginator = new \Phalcon\Paginator\Adapter\QueryBuilder(array( 'builder' => $this->builder, 'limit' => $limit, 'page' => $page )); $paginator->getPaginate()
I get this ERROR:
'address' doesn't exist in database when dumping meta-data
Is this a known issue?