1.2.0.5146alpha is the version I'm running.

$terminals = $this->paginate('TerminalsLog', array('Terminal.id GROUP
BY Terminal.id'));

was my paginate call.

Kury

On Jun 15, 3:27 am, AD7six <[EMAIL PROTECTED]> wrote:
> On Jun 15, 2:01 am, kury <[EMAIL PROTECTED]> wrote:
>
> > I was wondering, I was trying to use a MySql GROUP BY in a paginate
> > and could not find a good way to do this. currently i just tacked it
> > on the end of my conditions and it seemed to work but this seems like
> > a hack and i was wondering if anyone else could think of a more ...
> > graceful way of doing it?
>
> AFAIK, and at the time of writing, that's the only way.
>
> Out of curiosity: What version and revision of cake are you using, and
> could you paste your $this->paginate call for info?
>
> Cheers,
>
> AD


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to