Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

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?