Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DoctrineBundle] changed the Registry to return a new instance if the…
… current em is closed $em = $this->get('doctrine')->getEntityManager(); $em->getConnection()->beginTransaction(); // suspend auto-commit try { //... do some work } catch (Exception $e) { $em->getConnection()->rollback(); $em->close(); // get a new EM $em = $this->get('doctrine')->getEntityManager(); }
- Loading branch information