Hopefully I can explain this adequately.  I have 3 models

Recipe:  belongsTo User
Recipe: HaBTM Category

User: HaBTM Category (same categories as recipes)
User: hasMany Recipe

Category: HaBTM User
Category: HaBTM Recipe

(join tables categories_users and categories_recipes)


Everything works great, in the recipe model I can get the categories
that belong to that recipe, in the user model I can get the categories
that belong to that user.  I can make selection lists with all the
right stuff.

What I can't figure out is how to get the categories that belong to
the user (for instance) when I'm in the recipe model.  I have access
to the user_id (stuffed away in the session).

Any pointers would be greatly appreciated!
--~--~---------~--~----~------------~-------~--~----~
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