Hello) I have a code:
$items = \Phalcon\DI::getDefault()->get('modelsManager')->createBuilder()
->addFrom('m:Invoices', 'i')
->leftJoin('m:users', 'u.id = i.user_id', 'u')
->columns('i.id, i.text, i.cost, i.status, DATE_FORMAT(i.date, "%d-%m-%Y") AS dt, u.name')
->limit($limit)->offset($offset)->orderBy($order)
->getQuery()->execute();
All works there, but if I want to select all items from first table:
->columns('i.*, u.name')
I get very strange object!!
$items[0]->name - return name from second table $items[0]->text - return error.
How can I receive the same result?