From 485973d1107e7f9a949a26fe39d1782edc87362d Mon Sep 17 00:00:00 2001 From: tg666 Date: Sat, 23 Apr 2022 03:22:39 +0200 Subject: [PATCH] Fixed setup for custom database types --- src/DI/DoctrineBridgeExtension.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DI/DoctrineBridgeExtension.php b/src/DI/DoctrineBridgeExtension.php index aff1a18..151a2f2 100644 --- a/src/DI/DoctrineBridgeExtension.php +++ b/src/DI/DoctrineBridgeExtension.php @@ -111,14 +111,14 @@ private function processDatabaseTypeProviders(): void ]); if ($databaseType->commented) { - $connection->addSetup('@self->getDatabasePlatform()->markDoctrineTypeCommented(?::getType(?))', [ + $connection->addSetup('$service->getDatabasePlatform()->markDoctrineTypeCommented(?::getType(?))', [ new PhpLiteral(Type::class), $databaseType->name, ]); } if (NULL !== $databaseType->mappingType) { - $connection->addSetup('@self->getDatabasePlatform()->registerDoctrineTypeMapping(?, ?)', [ + $connection->addSetup('$service->getDatabasePlatform()->registerDoctrineTypeMapping(?, ?)', [ $databaseType->name, $databaseType->mappingType, ]);