Hi gourlay, You might find this useful: http://groups-beta.google.com/group/cake-php/browse_thread/thread/895ad34e2b0ddc76/c55484e7789a4aa0?lnk=gst&q=HABTM+conditions&rnum=9#c55484e7789a4aa0
HTH, AD7six Please note: The manual/bakery is a good place to start any quest for info. The cake search (at the time of writing) erroneously reports less/no results for the google group. The wiki may contain incorrect info - read at your own risk (it's mainly user submitted) :) You may get your answer quicker by asking on the IRC Channel (you can access it with just a browser here: http://irc.cakephp.org). On Nov 15, 12:03 am, "gourlay" <[EMAIL PROTECTED]> wrote: > Thank you nate. That got me going on the right direction (i think). > > So $result = $this->Post->Tag->findAll(array("Tag.id" => array(3, 6))); > returns an array with each tag specified in the condition and their > related posts within, and when I set recursive to 2 I get all the tags > associated with each Post returned. > > >From here my thought is to merge $result[0]['Post'] and$result[1]['Post'] to > >get an array of all Posts with those two tags. > > Then I need to loop through the array and get rid of the dupes. > > Am I going about this correctly? I feel like there might be a more > efficient way to do this all. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
