mscdex: I tried excactly that, still got the error.
brian: This works! So you have to specify the contained fields inside
the 'contain' array rather than in the (higher level) find field list…
One question of clarification:
I though "Containable" says: "This model can bee contained by other
model's controllers."
So it surprises me that it's the "Projects" model that I have to
declare as "Containable" (brian's solution works even with the
Category model not declared so).
Since I would argue that in this find (in the Project Controller) it's
the Catagory model that we're "containing".
Is it me mal-interpretating the English here?
Thanks to both of you.
--~--~---------~--~----~------------~-------~--~----~
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:
Post a Comment