title: Doctrine partial queries return the complete object
body: <p>I'm trying to optimize the query as I need a simple list as an entity that is affiliated with several entities.
  So I created this query, you should just give me back the id and name:</p>
  
  <pre><code>public function findAllOrderByName() {
      $qb = $this-&gt;createQueryBuilder('a');
           $query = $qb-&gt;select(array('partial a.{id,name}'))
                   -&gt;addOrderBy('a.name', 'ASC')
                   -&gt;getQuery();
  
           return $query-&gt;getResult();
  }
  </code></pre>
  
  <p>return it in the controller like this:</p>
  
  <pre><code>public function getInstrumentsAction()
  {
      $instruments = $this-&gt;getDoctrine()-&gt;getRepository('AcmeInstrumentBundle:Instrument')-&gt;findAllOrderByName();
  
      return array('instruments' =&gt; $instruments);
  }
  </code></pre>
  
  <p>rather than just give me back the two camps, gives me the complete object, thus including all the fields of other related entities.</p>
  
  <p>Why did not it work?</p>