Code:
$builder = new \Phalcon\Mvc\Model\Query\Builder;
$builder->addfrom('Events\Models\Events', 'event')
->columns(array('event.*','lang.*'))
->leftjoin('Events\Models\EventsLang', 'event.id = lang.object_id' , 'lang')
->where('users_id = '.$user['id'].' and (super_parent_id <> 35 or event_type_id <> 8)');
$paginator = new \Phalcon\Paginator\Adapter\QueryBuilder(array(
"builder" => $builder,
"limit" => $get_params["limit"],
"page" => $get_params["page"],
));
$paginator = $paginator->getPaginate();
When paginator calls getPaginate() method it show
Undefined index 0 in line where it was called, and
Model " could not be loaded
But when builder is made without alias all works fine, but when uses Alias it crashes.
Cant get more information, because downgraded back Phalcon. Some minor updates were made on Ubuntu system.
Maybe Phalcon have some word to say?