So you're after a list of agents who are not assigned to a branch? How about using counter_cache_habtm to count how many branches each agent belongs to and how many agents each branch has? http://bakery.cakephp.org/articles/view/counter-cache-behavior-for-habtm-relations
Otherwise you are looking at changing bindings on the fly: http://book.cakephp.org/view/86/Creating-and-Destroying-Associations-on-the-Fly or using JOIN to get the data you want: http://book.cakephp.org/view/872/Joining-tables HTH Paul Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
