Hi, I have two models, Users and Groups. I want to represent the association Users have Groups. Easy enough HABTM.
However, Groups are using Tree behavior, and I would like to specify that only Groups below a certain level are returned. The ways I have come up with to do this are not particularly elegant, perhaps because I lack Cake experience: 1. Hard code 'lft' and 'rght' values in a config file, and add these as conditions to the HABTM association find 2. Add code to the controller to load the correct value based on children Is there a better way to do this? Ideally I would like to have a way to specify that the children() rather than find() method should be used when creating the association. Thanks Benjamin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---