We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

problem afterFetch to Array

Hi, i have a problem with afterFetch with toArray(). In my code after i call "Robots::find()->toArray()" the method afterFetch dosen't is called, this is normal? If i do a request like:

$variable = Robots::find();
$variable->afterFetch(); 
$variable->toArray();

With this above example i receive a Fatal Error, but i really need that method afterFetch can be called!! How i can resolve this problem?