{"shas":[["86d0ddb4e3e957671df26e0ad98249ee566f150c","d4f8dcd89cfe40276c0fbf336903f4a05ab082c9@gmail.com","[DoctrineBundle] split Registry::getEntityManager() in two methods\n\nResetting an entity manager has a lot of consequences and the developer should\nbe aware of that. So, instead of implicitly reset an entity manager when it is\nclosed, the developer should reset it by hand if he thinks that this is\npossible:\n\n    $em = $this->get('registry')->getEntityManager();\n    $em->getConnection()->beginTransaction(); // suspend auto-commit\n    try {\n        //... do some work\n    } catch (Exception $e) {\n        $em->getConnection()->rollback();\n        $em->close();\n\n        $this->get('registry')->resetEntityManager();\n    }\n\n    // you will get a new one\n    $em = $this->get('registry')->getEntityManager();","Fabien Potencier"],["e150ffd6998b87e64fb252abe1c45e50029f6fa1","d4f8dcd89cfe40276c0fbf336903f4a05ab082c9@gmail.com","Merge remote branch 'Bart00/patch-1'\n\n* Bart00/patch-1:\n  Change \"zou moeten\" to \"moet\", (\"zou moeten\" implies that the problem is not so severe and was translated from english too literally) Also  fixes some typo's","Fabien Potencier"]],"repo":"kriswallsmith/symfony","actor":"kriswallsmith","ref":"refs/heads/master","size":2,"head":"e150ffd6998b87e64fb252abe1c45e50029f6fa1","actor_gravatar":"097f39f4cd9a83a03d92c246a2797880","push_id":30530261}