Skip to content

Commit

Permalink
[Symfony] Persist doctrine.dbal.backend_connection if Doctrine2 modul…
Browse files Browse the repository at this point in the history
…e is used

Fixes Codeception#3479
  • Loading branch information
Naktibalda authored and bulzgkri committed Jun 16, 2017
1 parent f7b3b4c commit e625c4f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Codeception/Module/Symfony.php
Original file line number Diff line number Diff line change
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 e625c4f

Please sign in to comment.