Skip to content

Commit

Permalink
Fixed setup for custom database types
Browse files Browse the repository at this point in the history
  • Loading branch information
tg666 committed Apr 23, 2022
1 parent c166636 commit 485973d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DI/DoctrineBridgeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]);
Expand Down

0 comments on commit 485973d

Please sign in to comment.