Hi!
I have two models:(Client,purchase)
One client has many purchases.
In clients_controller:
If I want to paginate all clients with name John I do:
$this->paginate(array('Client.name' => 'John'))
But how can I paginate all clients who have bought a certain product
(for example, condition: purchase.name='car')?
Thanks and regards
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---