You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling phalcon_call_method_p2_key() method, "custom_events_manager" is not an object - it is an array, where model is indexed by array key name ("entity_name" here).
Thus, shouldn't be call made on the "custom_events_manager->entity_name" ?
Thanks!
The text was updated successfully, but these errors were encountered:
Thanks for your efforts. However, having rebuilt from the 1.3.0 branch, I am still getting same error.
Pardon my ignorance, but I saw changes to ext/mvc/model/manager.c, while build/64bits/phalcon.c, that I know for fact is being used to compile the extension, is not updated and contains old code.
Full story here: http://stackoverflow.com/questions/19082505/custom-events-manager-in-phalcon-mvc-models-throws-errors
I've started digging and it looks like there's a bug in Phalcon\Mvc\Model\Manager::notifyEvent():
Firing "model:beforeValidation" event crashes execution.
When calling phalcon_call_method_p2_key() method, "custom_events_manager" is not an object - it is an array, where model is indexed by array key name ("entity_name" here).
Thus, shouldn't be call made on the "custom_events_manager->entity_name" ?
Thanks!
The text was updated successfully, but these errors were encountered: