Oh, I don't know. Just give it a try. First create() and then 
saveAll(request->data). It may help.

On Thursday, July 12, 2012 4:27:20 PM UTC+2, Michael wrote:
>
> This is from the docs:
>
> "The saveAll function is just a wrapper around the saveMany and 
> saveAssociated methods. it will inspect the data and determine what type 
> of save it should perform. If data is formatted in a numerical indexed 
> array, saveMany will be called, otherwise saveAssociated is used."
>
> So using saveAll should handle what I wanted. It might just be a bug.
>
> As for calling the create() and set() before saving, Im not really sure 
> why its needed since the code seems to create the record for you if 
> there isn't an id passes with it.
>

-- 
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

Reply via email to