I have a few models with HABTM relationships
What I want to do is filter by two models in the relationship
Something like this:
$this->Model1->findAll("Model1.type = 2 AND Model2.id > 10");
I've played with containable behavior, but no matter what, it only
seems to search the first model.
When I look at the query it generates, it is only searching that model
without any joins.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---