title: How do I get a list of registered entities in symfony2
body: <p>I've just started using symfony2 and I'd like to get a list of registered entities to search in two fields <strong>title</strong> and <strong>description</strong>. </p>
  
  <p>i've multiple <code>Entities</code> as well as multiple <code>Admins</code> , some of them are mapped with <strong>Symfony : Media</strong> 
  in single bundle (<strong>FrontBundle</strong>).</p>
  
  <blockquote>
    <p>Bundle with Entities structure.</p>
  </blockquote>
  
  <pre><code>FrontBundle
      -&gt;Pages(Entity)
      -&gt;Menus(Entity)
      -&gt;Testimonials.(Entity)
  </code></pre>
  
  <p>Also i don't want to call <code>getRepository($entity)</code> everytime because it will run's multiple queries.</p>
  
  <p>Any ideas on the best way to do that?</p>