Re: Validate only some field

2010-06-08 Thread josu jauregui
Hi marco! I use: $this->myModel->validate = Set::merge($this->myModel->validate, $newValidation); where $newValidation has the new rules to the specific case. for example: $newValidation= array('name_of_the_field_in_the_model_validation' => array('name_of_validation' => array('rule' => VALID_

Validate only some field

2010-06-08 Thread marco.rizze...@gmail.com
Hi I have this need. I have to do a model's save with a field that normally can't be empty but in this case can be empty. How can I do to save doing the validation only on some fields and not on others fields? Many Thanks Check out the new CakePHP Questions site http://cakeqs.org and help others w