Skip to content

Commit 7c454f3

Browse files
author
Robin Lehrmann
committed
chore(api): doctrine update
Updated doctrine/orm to ^3.0.0 doctrine/doctrine-bundle to ^2.14 Signed-off-by: Robin Lehrmann <robin@whatwedo.ch>
1 parent 4263228 commit 7c454f3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
"symfony/browser-kit": "^6.3|^7.0",
2626
"symfony/css-selector": "^6.3|^7.0",
2727
"symfony/phpunit-bridge": "^6.3|^7.0",
28-
"doctrine/doctrine-bundle": "^2.7",
28+
"doctrine/doctrine-bundle": "^2.14",
2929
"doctrine/doctrine-migrations-bundle": "^3.2",
30-
"doctrine/orm": "^2.14",
30+
"doctrine/orm": "^3.0.0",
3131
"symfony/twig-bundle": "^6.3|^7.0",
3232
"symfony/messenger": "^6.3|^7.0",
3333
"symfony/mercure-bundle": "^0.3"

src/Monitoring/Sensor/Database/DoctrineDbal.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ public function run(): void
3737
* @var string $name
3838
* @var Connection $connection
3939
*/
40-
foreach ($this->container->get(ManagerRegistry::class)->getConnections() as $name => $connection) {
40+
foreach ($this->container->get(ManagerRegistry::class)->getConnections() as $connection) {
4141
try {
4242
$connection->executeQuery(
43-
$connection->getDriver()->getDatabasePlatform()->getDummySelectSQL()
43+
$connection->getDriver()->getDatabasePlatform($connection)->getDummySelectSQL()
4444
);
4545
} catch (Exception $e) {
4646
$this->details['exception'] = $e->getMessage();

0 commit comments

Comments
 (0)