If you're using 1.2, you can set the 'on' attribute in the validation rule (like 'on' => 'create' to only enforce the rule only on creation).
On Oct 10, 4:48 pm, cakeFreak <[EMAIL PROTECTED]> wrote: > Hey guys, > I have a problem ?!?! > > In my user table I have a field password. > > I want it to be REQUIRED on "add" action, while I want it NOT-REQUIRED > on edit actions. > > Namely if the field is left blank on "edit" it's value doesn't get > changed in DB, an no errors are displayed. > > How can I achieve this? > How can I tell my model in which action I am? > > Cheers dan --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
