title: The EntityManager is closed
body: <pre><code>[Doctrine\ORM\ORMException]   
  The EntityManager is closed.  
  </code></pre>
  
  <p>After I get a DBAL exception when inserting data, EntityManager closes and I'm not able to reconnect it. </p>
  
  <p>I tried like this but it didn't get a connection.</p>
  
  <pre><code>$this-&gt;em-&gt;close();
  $this-&gt;set('doctrine.orm.entity_manager', null);
  $this-&gt;set('doctrine.orm.default_entity_manager', null);
  $this-&gt;get('doctrine')-&gt;resetEntityManager();
  $this-&gt;em = $this-&gt;get('doctrine')-&gt;getEntityManager();
  </code></pre>
  
  <p>Anyone an idea how to reconnect?</p>