Child hasMany Membership
Membership belongTo Child, Club
Club hasMany Membership

Basically Child HABTM Club with the Membership being the join table,
like at the bottom of this section: 
http://book.cakephp.org/view/85/Saving-Related-Model-Data-HABTM

How do I find all the combinations of Membership that a Child belongs
to. For example:

Child #1 has membership to clubs #1, #2, and #3.
Child #2 has membership to clubs #2, #3, and #4.
Child #3 has membership to club #1.

What I need is to find all the combinations of clubs being used. So
using the data above I need to a find operation to return array(0 =>
array(1,2,3), 1 => array(2,3,4), 2 => array(1)).

I know this can be done I'm at a loss as to how to do it though. Can
it be done with a single find?

--

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-...@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=.


Reply via email to