title: Doctrine queryBuilder: return object not array
body: <p>I have this query created with doctrine querybuilder, the return i get is an array of arrays.
  I would like to get a return that is an array of objects, is this possible?</p>
  
  <p>I know that normally Doctrine returns objects of an entity, bit since i have an inner join to get the name from another table it returns arrays.</p>
  
  <p>Thanks in advance.</p>
  
  <pre><code>   $qb-&gt;select('u', 'h.name')
          -&gt;from('AppBundle:UserHose', 'u')
          -&gt;innerJoin('AppBundle:Hose', 'h', 'WITH', 'u.hoseId = h.id')
          -&gt;where('u.userId = :userId')
          -&gt;orderBy('u.id', 'DESC')
              -&gt;setParameter('userId', $userId); 
  
  
      return $qb-&gt;getQuery()-&gt;getResult();
  </code></pre>