Skip to content

Commit

Permalink
Set default value for "is_bundle" option to true for "auto_mapping" mode
Browse files Browse the repository at this point in the history
  • Loading branch information
rybakit authored and fabpot committed Apr 18, 2013
1 parent c980dbd commit 765d8ff
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -51,7 +51,10 @@ protected function loadMappingInformation(array $objectManager, ContainerBuilder
// 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,
);
}
}
}
Expand Down

0 comments on commit 765d8ff

Please sign in to comment.