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
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.
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