title: cakephp how to avoid the repeating columns in query result
body: <p>I have a query like</p>
  
  <pre><code>$p = $this-&gt;Products-&gt;findById( $id )
                -&gt;select(['name', 'description', 'category_id', 's.name', 'pp.price'])
                -&gt;join([
                  'table' =&gt; 'sizes',
                  'alias' =&gt; 's',
                  'type' =&gt; 'INNER',
                  'conditions' =&gt; 's.category_id = Products.category_id',
              ])
              -&gt;join([
                  'table' =&gt; 'products_prices',
                  'alias' =&gt; 'pp',
                  'type' =&gt; 'LEFT',
                  'conditions' =&gt; 'pp.size_id = s.id AND pp.product_id = Products.id',
              ]);
  </code></pre>
  
  <p>The problem is if the product has 10 different sizes, 10 rows will be produced with repeating name, description, category_id elements</p>
  
  <p>Is there a way to rewrite it so the size's name and prices are delivered as array as a sub-array?</p>