title: Symfony, access to getManager() into controller
body: <p>So, for now, i get my manager in each action on my controller like that :</p>
  
  <pre><code>$em = $this-&gt;getDoctrine()-&gt;getManager();
  </code></pre>
  
  <p>Is there a better way to do that ? Use __construct and an attribut $em ? Don't know ? I want to reduce the size of my code.. Thanks !</p>