From 2c9b1db05a9a81f0c766585fb4493312bc58f767 Mon Sep 17 00:00:00 2001 From: Florent Viel Date: Fri, 31 Jul 2015 15:18:55 +0200 Subject: [PATCH] Fix doctrine mapping validation type error The error tell to implement the service `doctrine.orm..metadata_driver`, but this extensions check for the existence of the `doctrine.orm._metadata_driver` where `` the entity manager name. --- .../Doctrine/DependencyInjection/AbstractDoctrineExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php b/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php index 1518361c79..7da6d9fbcb 100644 --- a/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php +++ b/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php @@ -252,7 +252,7 @@ abstract class AbstractDoctrineExtension extends Extension throw new \InvalidArgumentException(sprintf('Can only configure "xml", "yml", "annotation", "php" or '. '"staticphp" through the DoctrineBundle. Use your own bundle to configure other metadata drivers. '. 'You can register them by adding a new driver to the '. - '"%s" service definition.', $this->getObjectManagerElementName($objectManagerName.'.metadata_driver') + '"%s" service definition.', $this->getObjectManagerElementName($objectManagerName.'_metadata_driver') )); } }