>
> 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".
It works either way. Whichever model is the one you're calling find()
on should act as Containable. You could just set that in AppModel and
you wouldn't need to think about it.
--~--~---------~--~----~------------~-------~--~----~
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