Well, if you really need the groups_units association then you will have two associations to manage, and it's probably going to be a pain to ensure that these are up to date. You can have callbacks for afterSave and afterDelete (or is there only beforeDelete?) on the various models to insert/remove some groups_units, but I don't think that will be comprehensive.
But once you've got that working, getting the count should be somewhat simpler - as it's just querying across one join. You can either do this with a manual query, or just do a read() and then count the associated rows. If you want fields to be added to every model that is loaded, you need to do this in the afterFind callback. Have a look at the second option I posted in http://groups.google.com/group/cake-php/browse_thread/thread/f4efae3f1bd46930 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---