Skip to content

Commit ffc43a2

Browse files
authored
1 parent 0f03afc commit ffc43a2

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"require": {
99
"php": ">=8.2, <9.0-dev",
1010
"doctrine/orm": "^2.9",
11+
"doctrine/dbal": "^3.1",
1112
"endroid/installer": "^1.4",
1213
"symfony/dependency-injection": "^5.4|^6.3|^7.0",
1314
"symfony/framework-bundle": "^5.4|^6.3|^7.0",

src/HealthCheck/DoctrineConnectionHealthCheck.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function check(HealthReportInterface $report): HealthReportInterface
4949
if (!is_null($this->entityManager)) {
5050
try {
5151
// Get the schema manager and grab the first table to later query on
52-
$sm = $this->entityManager->getConnection()->getSchemaManager();
52+
$sm = $this->entityManager->getConnection()->createSchemaManager();
5353
$tables = $sm->listTables();
5454
if (!empty($tables)) {
5555
$table = reset($tables);

0 commit comments

Comments
 (0)