[DoctrineBundle] changed the Registry to return a new instance if the current em is closed
[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();
    }

doctrine/DoctrineBundle,Soullivaneuh/DoctrineBundle,fervo/DoctrineBundle,stof/DoctrineBundle,nicolas-grekas/DoctrineBundle,skafandri/DoctrineBundle,hason/DoctrineBundle,mikeSimonson/DoctrineBundle,fervo/DoctrineBundle,mikeSimonson/DoctrineBundle,OskarStark/DoctrineBundle,fabpot/DoctrineBundle,fabpot/DoctrineBundle,skafandri/DoctrineBundle,chrisguitarguy/DoctrineBundle,hason/DoctrineBundle,lafourchette/DoctrineBundle,Soullivaneuh/DoctrineBundle,gencer/DoctrineBundle,OskarStark/DoctrineBundle,dunglas/DoctrineBundle,javiereguiluz/DoctrineBundle,chrisguitarguy/DoctrineBundle,gencer/DoctrineBundle,nicolas-grekas/DoctrineBundle,javiereguiluz/DoctrineBundle,hacfi/DoctrineBundle,hacfi/DoctrineBundle