cphalcon icon indicating copy to clipboard operation
cphalcon copied to clipboard

Events in Phalcon\Mvc\Collection

Open lobostome opened this issue 13 years ago • 2 comments

It seems like there are duplicate events in the _preSave method in Phalcon\Mvc\Collection. The events are in the following order:

beforeValidation beforeValidationOnCreate beforeValidationOnUpdate

validation onValidationFails afterValidationOnCreate afterValidationOnUpdate afterValidation beforeSave beforeUpdate beforeCreate

validation onValidationFails afterValidationOnCreate afterValidationOnUpdate afterValidation beforeSave beforeUpdate beforeCreate

lobostome avatar Dec 27 '12 21:12 lobostome

Hi, you're right, I added a fix for this in 0.8.0, thanks

ghost avatar Dec 28 '12 04:12 ghost

Thank you again for the extremely quick fix.

lobostome avatar Dec 28 '12 16:12 lobostome