No, beforeSave only runs before the data actually gets saved.  If the
data doesn't validate, the data doesn't save, and beforeSave isn't
called.  If you want something that's called regardless of whether or
not the data validates, use beforeValidate.

Btw, what are you doing with $validationErrors??  All that does it hold
an array of the fields that are invalid, and you shouldn't be accessing
it directly.  If you want to invalidate a specific field, use
Model::invalidate("fieldname");


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to