Set default value for "is_bundle" option to true for "auto_mapping" mode
This commit is contained in:
parent
c980dbd1f5
commit
765d8ffa70
@ -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,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user