hi in my app auctions habtm categories .
And categories act as tree .
But when I am seaching auctions with paginate I want to get all the
child categoris auctions too is that possible?
What shall this look like ?
$data = $this->paginate(
'CategoriesAuction' ,
array
(
'Auction.status'=>'open',
'Auction.approved'=>1,
'CategoriesAuction.category_id'=>$catId
)
);
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---