<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Fri, 21 Nov 2008 06:21:12 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Debuggable Blog: How to Group By in CakePHP's new release Part 2]]></title>
      <guid>http://www.phpdeveloper.org/news/10427</guid>
      <link>http://www.phpdeveloper.org/news/10427</link>
      <description><![CDATA[<p>
In <a href="http://www.debuggable.com/posts/how-to-group-by-in-cakephp's-new-release-part-2:4850d2c9-edbc-4f0e-9e0e-07d64834cda3">this new post</a> to the Debuggable blog, <i>Tim Koschutki</i> points out the method for using grouping in your CakePHP application's queries (specifically in the new Release 2).
</p>
<blockquote>
Having promised it in <a href="http://debuggable.com/posts/how-to-do-group-by-conditions-in-model-find()-calls:483fdc1c-8454-4593-a55e-37244834cda3">the first post on how to do Group By in CakePHP</a> I worked on an array() version for the group statement in Model::find() calls. So I implemented it. 
</blockquote>
<p>
His <a href="http://www.debuggable.com/posts/how-to-group-by-in-cakephp's-new-release-part-2:4850d2c9-edbc-4f0e-9e0e-07d64834cda3">code</a> shows the calls to find() the grouped information and accompanying unit test assertEquals calls to check that the results are correct. His examples show a few different ways to accomplish the same thing.
</p>]]></description>
      <pubDate>Tue, 17 Jun 2008 10:21:44 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Debuggable Blog: How to do Group By conditions in Model find() calls in the CakePHP RC1]]></title>
      <guid>http://www.phpdeveloper.org/news/10396</guid>
      <link>http://www.phpdeveloper.org/news/10396</link>
      <description><![CDATA[<p>
On the Debuggable blog, <i>Tim Koschutzki</i> <a href="http://www.debuggable.com/posts/how-to-do-group-by-conditions-in-model-find()-calls:483fdc1c-8454-4593-a55e-37244834cda3">shows</a> how to  use grouping in your SQL statements with the find() method calls inside of a Model for an app.
</p>
<blockquote>
We have to thank <a href="http://mark-story.com/">Mark Story</a> 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.
</blockquote>
<p>
He has some <a href="http://www.debuggable.com/posts/how-to-do-group-by-conditions-in-model-find()-calls:483fdc1c-8454-4593-a55e-37244834cda3">code included</a> that compares the two methods - the newer of the two applying the 'group' option as a regular condition to the query object.
</p>
<p>
This functionality is currently only in the the Release Candidate 1 but will be included in the next major release.
</p>]]></description>
      <pubDate>Thu, 12 Jun 2008 08:48:09 -0500</pubDate>
    </item>
  </channel>
</rss>
