Friday, May 28, 2010

Re: model::updateAll not triggering model::beforeSave

Model::updateAll is not intended to fire callbacks, as it could update
an arbitrary number of records. If you need callbacks to be fired
you'll have to use other methods.

-Mark

On May 28, 4:17 am, Ernesto <e.fanz...@gmail.com> wrote:
> Hello.
>
> i noticed that model::updateAll isn't triggering model::beforeSave
>
> is this a bug or an intended behavior?
>
> alternatives? (right now i switched to model::save)

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: