Skip to content

Commit e708d65

Browse files
committed
Enable the XSD validation for the ORM mapping
1 parent 9351e06 commit e708d65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FOSUserBundle.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ private function addRegisterMappingsPass(ContainerBuilder $container)
5151
];
5252

5353
if (class_exists('Doctrine\Bundle\DoctrineBundle\DependencyInjection\Compiler\DoctrineOrmMappingsPass')) {
54-
$container->addCompilerPass(DoctrineOrmMappingsPass::createXmlMappingDriver($mappings, ['fos_user.model_manager_name'], 'fos_user.backend_type_orm'));
54+
$container->addCompilerPass(DoctrineOrmMappingsPass::createXmlMappingDriver($mappings, ['fos_user.model_manager_name'], 'fos_user.backend_type_orm', [], true));
5555
}
5656

5757
if (class_exists('Doctrine\Bundle\MongoDBBundle\DependencyInjection\Compiler\DoctrineMongoDBMappingsPass')) {

0 commit comments

Comments
 (0)