I *think* that saveAll only goes to the level n+1, not level n+2. You might 
have to loop through the data array call saveAll repetitively. PITA, I know.

Jeremy Burns
Class Outfit

[email protected]
http://www.classoutfit.com

On 17 Jun 2010, at 22:10, Soniya Ahuja wrote:

> Hi,
> 
> I have a Model structure such that Model1 hasMany Model2 and Model2
> hasMany Model3. Now, I have designed a form for Model1 and it contains
> fields for Model2 and Model3 as well.
> 
> I see that calling a saveAll on Model1 validates and persists the data
> for Model2 but it does not validate or persist the data for Model3.
> 
> Could anyone tell me how to get this particular piece working?
> 
> Sorry if this is a repetition of some question asked earlier, I didn't
> find anything similar with the keywords that I used to search the
> group discussions.
> 
> Thanks.
> 
> 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

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

Reply via email to