Skip to content

Commit

Permalink
ripristinato loading file orm di default
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardonar committed Sep 27, 2018
1 parent b6fe9dc commit 9267f3d
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,14 +208,11 @@ protected function registerMappingDrivers($objectManager, ContainerBuilder $cont
));
}
$mappingDriverDef->setPublic(false);
if (false !== strpos($mappingDriverDef->getClass(), 'yml')) {
$mappingDriverDef->setArguments(array(array_flip($driverPaths)));
$mappingDriverDef->addMethodCall('setGlobalBasename', array('mapping'));
}elseif (false !== strpos($mappingDriverDef->getClass(), 'xml')) {
$mappingDriverDef->addMethodCall('setFileExtension', array('.orm.xml'));
if (false !== strpos($mappingDriverDef->getClass(), 'yml') || false !== strpos($mappingDriverDef->getClass(), 'xml')) {
$mappingDriverDef->setArguments(array(array_flip($driverPaths)));
$mappingDriverDef->addMethodCall('setGlobalBasename', array('mapping'));
}


$container->setDefinition($mappingService, $mappingDriverDef);

foreach ($driverPaths as $prefix => $driverPath) {
Expand Down

0 comments on commit 9267f3d

Please sign in to comment.