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?

With validate set to first I do get an array back... but only an empty
one.

Is this a bug and should have a ticket or is there just some confusion
in the way I have read the docs?

thanks
Martin

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@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to