Re: Multiple Model Validation

2013-12-16 Thread Reuben
>From the controller, you can access $this->validationErrors to view validation errors from multiple models. Though from your example, if you were saving an Order, wouldn't you want to look at $this->Order->validationErrors to see all the errors associated with that save? Regards Reuben Helms

Multiple Model Validation

2013-12-16 Thread Advantage+
When doing something like this: if($this->Order->saveAssociated($this->request->data, array('validate' => 'first'))){ good stuff... } else { echo 'hello';