title: Return array with Doctrine findBy method
body: <p>I am using the Doctrine <code>findBy()</code> method, but I want to get arrays returned instead of objects. This is my query:</p>
  
  <pre><code>$results = $em
      -&gt;getRepository('xBundle:x')
      -&gt;findBy(
          array(),
          array('name' =&gt; 'ASC')
  );
  </code></pre>
  
  <p>I did some research and found that <code>HYDRATE_ARRAY</code> is the way to do it, but I have no idea how to include that in the <code>findBy()</code> method.</p>
  
  <p><strong>EDIT</strong>
  My query as it is, is returning objects. I don't want to create any methods in my repository; I want to just edit the existing query so that it returns arrays.</p>