Skip to content

Commit fef7990

Browse files
committed
merged branch rybakit/is_bundle2.1 (PR symfony#7640)
This PR was submitted for the 2.1 branch but it was merged into the master branch instead (closes symfony#7640). Discussion ---------- Set default value for "is_bundle" option to true for "auto_mapping" mode Commits ------- c4a6467 Set default value for "is_bundle" option to true for "auto_mapping" mode
2 parents c980dbd + 765d8ff commit fef7990

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)