> I wanted to get some input on the return I get from Model::saveAll().
> (I am on 1.3 RC4)
>
> When trying to save multiple records of the same model things did not
> save at all at first due to the new validation default. I needed
> individual validation so that correct records would save but invalid
> ones would be tossed.
>
> So I have added validate true like so:
> $this->Modename->saveAll($this-
>>data['Modename'],array('validate'=>true));
>
> Problem is I now expected an array of return values, one for each
> record as hinted at (somewhere, can't find it now) but I all I get is
> false. Even though 3 out of 4 records are saved. I was under the
> impression that saveAll would return an array for these "partial"
> successes. Perhaps not?If you use INNODB cake should wrap your save in a single transaction, which means none of the records will be saved, and the invalid fields highlighted in your form. When not using transactions, saveall is probably a bad idea as you say, some things get saved, some things don't. hth Jon -- jon bennett - www.jben.net - blog.jben.net 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
