Monday, December 16, 2013

Multiple Model Validation

When doing something like this:

 

if($this->Order->saveAssociated($this->request->data, array('validate' => 'first'))){

                good stuff…..                                    

} else {

                                                               

                echo 'hello';

                debug($this->User->validationErrors);

                die;

}

 

How do I get the list of validation errors?

I could not seem to find the answer anywhere.

 

Thanks,

 

Dave

No comments: