In controller
$builder = $this->modelsManager->createBuilder() ->from(array('p' => '\Blog\Models\Posts')) ->leftJoin('\Blog\Models\PostsTranslation', 't.id = p.id', 't'); echo $sql = $builder->getPhql();
SELECT [p].* FROM [\Blog\Models\Posts] AS [p] LEFT JOIN [\Blog\Models\PostsTranslation] AS [t] ON t.id = p.id
When i call. It return Model '' could not be loaded
$paginator = new PaginatorQuery(array( "builder" => $builder, "limit" => $limit, "page" => $numberPage )); $this->view->page = $paginator->getPaginate();