You could use a custom query:
$this->Model->findAll('GROUP BY field', null, null);
Or you could also use this method:
http://groups-beta.google.com/group/cake-php/browse_thread/thread/20f0352d66
7b0dda
-MI
---------------------------------------------------------------------------
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
-----Mensaje original-----
De: [email protected] [mailto:[EMAIL PROTECTED] En nombre
de Erich C. Beyrent
Enviado el: Viernes, 08 de Diciembre de 2006 05:13 p.m.
Para: Cake PHP
Asunto: Group by?
Where do you specify "group by" clauses in your model? Is there a way,
or do I need to write a custom query?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---