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

View File

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