[DoctrineBundle] added the possibility to disable a bundle when using auto_mapping

orm:
    auto_mapping: true
    mappings:
         FOSUserBundle: false
This commit is contained in:
Fabien Potencier 2011-04-27 14:26:28 +02:00
parent c752429d7c
commit c846990459
1 changed files with 4 additions and 0 deletions

View File

@ -52,6 +52,10 @@ abstract class AbstractDoctrineExtension extends Extension
}
foreach ($objectManager['mappings'] as $mappingName => $mappingConfig) {
if (false === $mappingConfig) {
continue;
}
$mappingConfig = array_replace(array(
'dir' => false,
'type' => false,