Am 12.01.2012 18:18, schrieb Patrick:
> Hahaha... I can't believe I've made stupid mistake like that.
> Yes, I typed 'false' as a string.
> Now this script is able to rollback() :D
> But new problems arise :(
> If the 'atomic' set to false, how I know when saveAll() fails?
> Because when I put saveAll() in IF statement like this:
> if(!$this->BranchRequest->saveAll($this-
>> data,array('validate'=>'first','atomic'=>false)))
> It seems not working.
>
calling saveAll with 'atomic' set to false will return an array for each
record saved containing true if the record was saved successfully and
false if not.It's all documented, please read the book: http://book.cakephp.org/ -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
