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, ]);