Just a follow up -- I got the HABTM code linked up following advice from this post: http://groups.google.com/group/cake-php/browse_frm/thread/f23b1825050ad543/014092749592de70?lnk=gst&q=filtering+habtm&rnum=1#014092749592de70
The working test code is something like this: function test() { $search = array(); $this->Profile->Community->unbindAll(); $comm = $this->Profile-->Community->findByTitle("Wally's Home Community"); $search['CommunitiesProfile.community_id'] = $comm['Community']['id']; $this->Profile->bindModel(array('hasOne' => array('CommunitiesProfile')), false); // If you don't include the false, you need to execute this line again before doing the count query0 debug($this->Profile->findAll($search)); debug($this->Profile->findAll($search, array('count(*)'))); exit; } Obviously, this code doesn't do much, just tests that I can get the results I want, and a count of the records, since I'll be using paginated results. Thanks to AD7six for putting me onto the right search terms for the google group (filtering habtm). --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---