title: specify key values for return $query->fetchArray()?
body: <p>Using Doctrine, I'm doing a query kinda like this:</p>
  
  <pre><code>$query = Doctrine_Query::create()-&gt;select('id,name')-&gt;from('people');
  return $query-&gt;fetchArray();
  </code></pre>
  
  <p>It returns an object similar to the following array of arrays:</p>
  
  <pre><code>array(3) {
    [0]=&gt;
    array(4) {
      ["id"]=&gt;
      string(1) "34"
      ["name"]=&gt;
      string(7) "John"
    }
    [1]=&gt;
    array(4) {
      ["id"]=&gt;
      string(1) "156"
      ["name"]=&gt;
      string(6) "Bob"
    }
    [2]=&gt;
    array(4) {
      ["id"]=&gt;
      string(1) "27"
      ["name"]=&gt;
      string(7) "Alex"
    }
  }
  </code></pre>
  
  <p>Notice how the array's keys count up from 0, 1, 2, etc? My question: Is it possible to specify where you want the key values to come from? For example, I would like the key values in the above case to be 34, 156 and then 27.</p>
  
  <p>I noticed in the Doctrine doc's that both <code>fetchArray()</code> has parameters that you can feed them, but it doesn't say anything about what those parameters are...</p>
  
  <pre><code>public array fetchArray(string params)
  </code></pre>
  
  <p><a href="http://www.doctrine-project.org/api/orm/1.2/doctrine/doctrine_query.html#fetchArray" rel="nofollow">http://www.doctrine-project.org/api/orm/1.2/doctrine/doctrine_query.html#fetchArray</a>()</p>
  
  <p>Also, I can obviously just repopulate a new array with the prefered key/value combinations, but I'm trying to avoid the extra processing required.</p>