Reputation: 7575
I'm attempting to find out if there is a cake convention for handling groups belonging to other groups. I have a HABTM relationship between the tables 'entities' and 'entity_groups', but then entity_groups can also be nested with one entity_group belonging to another.
Upvotes: 1
Views: 91
Reputation: 2340
So there seems to be two possible solutions based on what you are asking:
The best solution is to probably do a combination of these, use the hasMany to modify the Join model and add the Tree Behavior rather than trying to roll your own.
Upvotes: 1