[Doctrine\\ORM\\ORMException] The EntityManager is closed.
After I get a DBAL exception when inserting data, EntityManager closes and I\'m not
// first need to reset current manager $em->resetManager(); // and then get new $em = $this->getContainer()->get("doctrine"); // or in this way, depending of your environment: $em = $this->getDoctrine();