beforeValidate runs before validation, but doesn't actually prevent saving. If there is something you need to check that prevents saving a record, you should put the logic in beforeSave
-Abba On Sep 21, 8:34 am, "Novice Programmer" <[EMAIL PROTECTED]> wrote: > got that... Need to set soem field as invalid using Model::invalidate so > that the save aborts.. > > By I have another query now.. How do i fetch records saved to DB after > saveAll. > > Thanks. > > On Sun, Sep 21, 2008 at 8:23 PM, Novice Programmer <[EMAIL PROTECTED] > > > wrote: > > Hello guys, > > > in some cases i want to abort saving in beforeValidate callback. I have > > returned false in that case, but i am not able to abort saving, it still > > continues to save the record. Any ideas on what it can be? > > > -- > > Thanks & Regards, > > Novice. > > -- > Thanks & Regards, > Novice. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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?hl=en -~----------~----~----~----~------~----~------~--~---
