minor #15420 Fix doctrine mapping validation type error (luxifer)

This PR was merged into the 2.3 branch.

Discussion
----------

Fix doctrine mapping validation type error

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

The error tell to implement the service `doctrine.orm.<em_name>.metadata_driver`, but this extensions check for the existence of the `doctrine.orm.<em_name>_metadata_driver` where `<em_name>` the entity manager name.

Commits
-------

2c9b1db Fix doctrine mapping validation type error
This commit is contained in:
Fabien Potencier 2015-08-01 08:04:58 +02:00
commit 79b5baf42f
1 changed files with 1 additions and 1 deletions

View File

@ -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')
));
}
}