Re: Querying HABTM associations by array

2007-05-23 Thread Chowsapal
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()

Querying HABTM associations by array

2007-05-23 Thread Chowsapal
I'm trying to search for profiles based on communities that they HABTM. I need to use an array for the search, because I'll be including dozens of other criteria in the search. I've got everything else hammered out except how to search this way using HABTM assoc's. I've tried tons of combos of