[Doctrine\\ORM\\ORMException] The EntityManager is closed.
After I get a DBAL exception when inserting data, EntityManager closes and I\'m not
You can reset your EM so
// reset the EM and all aias $container = $this->container; $container->set('doctrine.orm.entity_manager', null); $container->set('doctrine.orm.default_entity_manager', null); // get a fresh EM $em = $this->getDoctrine()->getManager();