Hi all, if I havent missunderstod something I belive that there is
ether a bug in saveAll or an error in the phpDoc.

In the phpDoc it says "True on success, or an array of validation
errors on failure" and by looking at this code (which is the last
couple of lines in that method):

if ($options['atomic']) {
        $db->commit($this);
}

And after that the function ends, which means that in some cases it
might success in saveing the data but without returning true.

I tried to add a return true; in that if statment which seams to work
for me atlest.

The reason i found this is because saveAll stoped returning true after
i added a behavior which alters the data for a related model.

So, can anyone confirm my idea?'

//Laeffe
Ps. sorry if my english sucks :P

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to