title: Using pagination in Doctrine2/Symfony2 without Doctrine paginator extension
body: <p>I'm using Doctrine2 for a project that might get a lot of traffic and I'm welling to do some pagination in a search page and that only fetch 5 results per page
  So is there a good way for doing this without the need to use the doctrine extension and keeping the ORM abstraction layer? I mean I don't want to write any form of dql queries and keep my code in this format:</p>
  
  <pre><code> $repo= $this-&gt;getDoctrine()
                      -&gt;getEntityManager()
                      -&gt;getRepository('AcmeOfficeBundle:Project');
          $list=$repo-&gt;findBy(array('PROJ_private' =&gt; "0"));
  </code></pre>