Thursday, October 1, 2009

Re: find() when having nested models

Hello John,

I already tried putting all X.id and X.Y_id in the respective field
arrays - no change.

And this also does not explain, why cakephp does the right thing
automatically when I select B, C, D, F, and G, but not when selecting
A. What I do not understand is the difference between the behavior of
A and B. The should be absolutely identical, both are related to C by
"C belongs to (A,B)".


> A quick test is just to not specify any fields and see if Containable works then!
No it does not. Same behavior. A is called with C.id instead of C.A_id.
--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: