title: Make the cake php find query result to be changed array key with id value using Cake php itself
body: <p>How to make the cake php find query result array key to changed to id value using cake php?</p>
  
  <pre><code>$videos = $this-&gt;Video-&gt;find('all');
  
  print_r($videos);
  </code></pre>
  
  <p>The array will be</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [Video] =&gt; Array
                  (
                      [id] =&gt; 6
                  )
  
          )
  
      [1] =&gt; Array
          (
              [Video] =&gt; Array
                  (
                      [id] =&gt; 8
                  )
  
          )
  )
  </code></pre>
  
  <p>How to change the array key with id value like below</p>
  
  <pre><code>Array
  (
      [6] =&gt; Array
          (
              [Video] =&gt; Array
                  (
                      [id] =&gt; 6
                  )
  
          )
  
      [8] =&gt; Array
          (
              [Video] =&gt; Array
                  (
                      [id] =&gt; 8
                  )
  
          )
  )
  </code></pre>
  
  <p>Is it possible by cake php itself ?</p>