Debuggable Blog: How to do Group By conditions in Model find() c...

Courtesy PHPDeveloper.org  Thu, 06/12/2008 - 08:48

On the Debuggable blog, Tim Koschutzki shows how to use grouping in your SQL statements with the find() method calls inside of a Model for an app.

We have to thank Mark Story and wluigi for working on group by conditions for Cake's Model::find() method.

Up until now, you would have to add your GROUP BY stuff to string'ed conditions in order to support a group by statement, which could be very ugly.

...

 

Reply

The content of this field is kept private and will not be shown publicly.