title: CakePHP return find('all') using 'id' as array Index
body: <p>So I'm trying to return a find 'all' array using the id of a 'Product' as the index key for each Product.</p>
  
  <p>Typically it returns:</p>
  
  <pre><code>array(
      (int) 0 =&gt; array(
          'Product' =&gt; array(
              'id' =&gt; '1232',
              'category_id' =&gt; '330',
              'name' =&gt; 'Product #1',
          )
      ),
      (int) 1 =&gt; array(
          'Product' =&gt; array(
              'id' =&gt; '1245',
              'category_id' =&gt; '310',
              'name' =&gt; 'Product #2',
          )
      ),
      (int) 2 =&gt; array(
          'Product' =&gt; array(
              'id' =&gt; '1248',
              'category_id' =&gt; '312',
              'name' =&gt; 'Product #3',
          )
      )
  )
  </code></pre>
  
  <p>Whereas ideally I'd like it to return:</p>
  
  <pre><code>array(
      (int) 1232 =&gt; array(
          'Product' =&gt; array(
              'id' =&gt; '1232',
              'category_id' =&gt; '330',
              'name' =&gt; 'Product #1',
          )
      ),
      (int) 1245 =&gt; array(
          'Product' =&gt; array(
              'id' =&gt; '1245',
              'category_id' =&gt; '310',
              'name' =&gt; 'Product #2',
          )
      ),
      (int) 1248 =&gt; array(
          'Product' =&gt; array(
              'id' =&gt; '1248',
              'category_id' =&gt; '312',
              'name' =&gt; 'Product #3',
          )
      )
  )
  </code></pre>
  
  <p>Is this possible? And how do I go about doing it?</p>
  
  <p>I have an excel spreadsheet of records that I need to match ID's to, so currently I have it iterating each spreadsheet row and performing a 'first' find to get any results, then act upon them if they do.</p>
  
  <p>It works, but the recordset has grown to over 28000 and so performing one find for each has noticeable overhead.</p>
  
  <p>If I can do this simply in the 'find' operation it would be great, if not, any noticeable increase in performance would be appreciated.</p>