Skip to content

Commit 765d8ff

Browse files
rybakitfabpot
authored andcommitted
Set default value for "is_bundle" option to true for "auto_mapping" mode
1 parent c980dbd commit 765d8ff

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ protected function loadMappingInformation(array $objectManager, ContainerBuilder
5151
// automatically register bundle mappings
5252
foreach (array_keys($container->getParameter('kernel.bundles')) as $bundle) {
5353
if (!isset($objectManager['mappings'][$bundle])) {
54-
$objectManager['mappings'][$bundle] = null;
54+
$objectManager['mappings'][$bundle] = array(
55+
'mapping' => true,
56+
'is_bundle' => true,
57+
);
5558
}
5659
}
5760
}

0 commit comments

Comments
 (0)