diff --git a/DependencyInjection/DoctrineExtension.php b/DependencyInjection/DoctrineExtension.php index 3716e488c..e090ace9a 100644 --- a/DependencyInjection/DoctrineExtension.php +++ b/DependencyInjection/DoctrineExtension.php @@ -966,7 +966,7 @@ public function getConfiguration(array $config, ContainerBuilder $container): Co protected function getMetadataDriverClass(string $driverType): string { - return '%' . $this->getObjectManagerElementName('metadata.' . $driverType . '.class%'); + return '%' . $this->getObjectManagerElementName('metadata.' . $driverType . '.class') . '%'; } private function loadMessengerServices(ContainerBuilder $container): void