Set default value for "is_bundle" option to true for "auto_mapping" mode

This commit is contained in:
Eugene Leonovich 2013-04-12 12:04:36 +02:00 committed by Fabien Potencier
parent c980dbd1f5
commit 765d8ffa70
1 changed files with 4 additions and 1 deletions

View File

@ -51,7 +51,10 @@ abstract class AbstractDoctrineExtension extends Extension
// automatically register bundle mappings
foreach (array_keys($container->getParameter('kernel.bundles')) as $bundle) {
if (!isset($objectManager['mappings'][$bundle])) {
$objectManager['mappings'][$bundle] = null;
$objectManager['mappings'][$bundle] = array(
'mapping' => true,
'is_bundle' => true,
);
}
}
}