Skip to content

Commit

Permalink
Merge pull request #3500 from Naktibalda/symfony-persist-doctrine-dba…
Browse files Browse the repository at this point in the history
…l-connection

[Symfony] Persist doctrine.dbal.backend_connection if Doctrine2 module is used
  • Loading branch information
Naktibalda committed Sep 13, 2016
2 parents a240c23 + de95205 commit b5a4c64
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Codeception/Module/Symfony.php
Expand Up @@ -202,6 +202,9 @@ public function _getEntityManager()
if ($this->_getContainer()->has('doctrine.orm.default_entity_manager')) {
$this->persistService('doctrine.orm.default_entity_manager', true);
}
if ($this->_getContainer()->has('doctrine.dbal.backend_connection')) {
$this->persistService('doctrine.dbal.backend_connection', true);
}
}
return $this->permanentServices[$this->config['em_service']];
}
Expand Down

0 comments on commit b5a4c64

Please sign in to comment.