Hello!
How to perform validations only on certain actions. I've got an action 'login' that needs to update 'user' record but validations stop it. Using the functions validatesOnCreate/validatesOnUpdate is not a possibility because some of the validations need to be run even in updates...
-jyrki
In case you need to avoid validation when saving you just need to pass false to the User::save function like:
$this->User->save(false);
That will bypass validations when required.
Hey and thanks, Bermi!
-jyrki
Ok. Couple of model related questions.
-jyrki
1 to 4 of 4