Skip to content

Commit 250d461

Browse files
committed
[Symfony] Persist doctrine.dbal.backend_connection if Doctrine2 module is used
Fixes #3479
1 parent b3984e5 commit 250d461

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Codeception/Module/Symfony.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ public function _getEntityManager()
202202
if ($this->_getContainer()->has('doctrine.orm.default_entity_manager')) {
203203
$this->persistService('doctrine.orm.default_entity_manager', true);
204204
}
205+
if ($this->_getContainer()->has('doctrine.dbal.backend_connection')) {
206+
$this->persistService('doctrine.dbal.backend_connection', true);
207+
}
205208
}
206209
return $this->permanentServices[$this->config['em_service']];
207210
}

0 commit comments

Comments
 (0)