title: Doctrine :FetchAll() with limits
body: <p>I want to make a fetchAll() with limit ? Do you know if it's possible with the entity manager of symfony2 ?</p>
  
  <p>My current code (Fetch all, without limit):</p>
  
  <pre><code>$repository = $this-&gt;getDoctrine()-&gt;getRepository('MyBundle:Download');
  $product    = $repository-&gt;findAll();
  </code></pre>
  
  <p>Thanks you all.
  Best regards,</p>
  
  <p>EDIT:</p>
  
  <pre><code>$em = $this-&gt;getDoctrine()-&gt;getRepository('MyBundle:Download');
  $ouput = $em-&gt;findBy(array(), array('id' =&gt; 'DESC'),5);
  </code></pre>
  
  <p>Return the 5 last rows. </p>
  
  <p>Thanks all.</p>