Hello
$article = Articles::findFirst(1);
$article->getTitle();
Method findFirst return \Phalcon\Mvc\Model
, so it is true that Method not found
, but Articles
has this method.
How can we cast \Phalcon\Mvc\Model
to Articles
?
This code works, but it is very inconvenient that the tips (autocomplete) from the IDE do not work.. Thank you.