[Doctrine\ORM\ORMException]
The EntityManager is closed.
Run Code Online (Sandbox Code Playgroud)
在插入数据后出现DBAL异常后,EntityManager关闭,我无法重新连接它.
我试过这样但是没有得到联系.
$this->em->close();
$this->set('doctrine.orm.entity_manager', null);
$this->set('doctrine.orm.default_entity_manager', null);
$this->get('doctrine')->resetEntityManager();
$this->em = $this->get('doctrine')->getEntityManager();
Run Code Online (Sandbox Code Playgroud)
任何人都知道如何重新连接?