On Feb 27, 3:55 am, Gianluca Gentile <[email protected]>
wrote:
> Other idea? :)
Try either changing the 'recursive' to 1 or use the containable
behavior. For the latter option, you have to make sure your
appropriate models have "Containable" in their $actsAs array. Then
try:
var $paginate = array('conditions' => array('Site.category_id' => 1,
'OR' => array('Tag.id' => 1, 'Tag.id' => 2)), 'contain' => array
('Site'));
or for recursive of 1:
var $paginate = array('conditions' => array('Site.category_id' => 1,
'OR' => array('Tag.id' => 1, 'Tag.id' => 2)), 'recursive' => 1);
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---