cake-php@googlegroups.com
[Top] [All Lists]

Re: saveAll and validation Error on associated Model

Subject: Re: saveAll and validation Error on associated Model
From: huoxito
Date: Sat, 25 Dec 2010 19:38:36 -0800 PST
I just had a very similar problem, came here to find a solution, afterall i found it in the official doc itself, I just set the validate option to true, default is first which would validate all record before saving them and would lead to those validation errors.

saveAll($this->data,array('validate' => true))

So that, as the doc says, validate each record before saving.

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
cake-php+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
<Prev in Thread] Current Thread [Next in Thread>