Hello,
I try to implement something in the afterFetch method. This was added here https://github.com/phalcon/cphalcon/commit/ff26d57ca4770c2fea5d1b474209c29b5dc9a55b I am using 1.3.3 with the latest changes but it seems it is not working.
class MyCollection extends \Phalcon\Mvc\Collection
{
// ....
public function afterFetch()
{
$this->name = 'Ghost';
}
// ...
}
$collection = MyCollection::find();
// The value of each $name is the one stored in document, not the one that I assign in the afterFetch method.
// I have tried to debug this and it seems that afterFetch it is never called
Anyone had similar problem ? Thanks