title: How to get a one-dimensional scalar array as a doctrine dql query result?
body: <p>I want to get an array of values from the id column of the Auction table.
  If this was a raw SQL I would write:</p>
  
  <pre><code>SELECT id FROM auction
  </code></pre>
  
  <p>But when I do this in Doctrine and execute:</p>
  
  <pre><code>$em-&gt;createQuery("SELECT a.id FROM Auction a")-&gt;getScalarResult(); 
  </code></pre>
  
  <p>I get an array like this:</p>
  
  <pre><code>array(
      array('id' =&gt; 1),
      array('id' =&gt; 2),
  )
  </code></pre>
  
  <p>Instead, i'd like to get an array like this:</p>
  
  <pre><code>array(
      1,
      2
  )
  </code></pre>
  
  <p>How can I do that using Doctrine?</p>