On 10 mayo, 12:48, floepi <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> can someone please tell me how i can group in my SQL query when i am
> using an array as condition for the findAll.

You can't (afaik) - you need to use a string constraint. Do you need a
group by though, would a sort not suffice?

> $this->User->findAll($condtitions.' GROUP BY User.name')

Well... even if it was possible to use GROUP by with an array
constraint php doesn't let you concatonate a string onto the end of an
array like that, all you'll get as a result is "array GROUP BY...".

hth,

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