title: CakePHP 2.x GROUP BY within Containable
body: <p>I am going nuts trying to find a good solution, either using the <code>set::extract()</code> or something. I want to add a GROUP BY within my containable:</p>
  
  <pre><code>$params = array(
      'conditions'=&gt;array(
          'Project.id'=&gt;$ProjectId
      ),
      'contain'=&gt;array(
          //Gets the User Who owns the Project
          'User'=&gt;$user,
          'Bid'=&gt;array(
              //The User Who owns the Bid
              'User'=&gt;$user
          ),
          'ProjectType',
          'Os',
          'Comment'=&gt;array(
              'To'=&gt;$user,
              'From'=&gt;$user,
              'group'=&gt;"Comment.from_id"
          ),
      ),
  );
  //debug($params);
  return $this-&gt;find('first',$params);
  </code></pre>
  
  <p>I do not want to hack to get around this issue - is there an easier way to do this?</p>