so when running findfirst with just an ID i get the whole model back with all the functions.
when running findfirst with more advance finds, i get the Phalcon\Mvc\Model\Row class back.
Why is it not returning the whole model?
//Returns Row class
Accounts::findFirst(
[
'columns' => 'id, firstName, lastName, userName, created',
'conditions' => 'firstName = :firstName0: OR firstName = :firstName1:',
'bind' => [
'firstName0' => 'jason',
'firstName1' => 'john'
]
]
);
//returns account model class
Accounts::findFirst(1);