Commit
… of Doctrine
- Loading branch information
There are no files selected for viewing
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -206,7 +206,7 @@ protected function registerMappingDrivers($objectManager, ContainerBuilder $cont | |
} | ||
$mappingDriverDef->setPublic(false); | ||
if (false !== strpos($mappingDriverDef->getClass(), 'yml') || false !== strpos($mappingDriverDef->getClass(), 'xml')) { | ||
$mappingDriverDef->addMethodCall('setNamespacePrefixes', array(array_flip($driverPaths))); | ||
$mappingDriverDef->setArguments(array(array_flip($driverPaths))); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
fabpot
Author
Member
|
||
$mappingDriverDef->addMethodCall('setGlobalBasename', array('mapping')); | ||
} | ||
|
||
|
4 comments
on commit 3ca1ccb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fabpot: Is it possible that this commit may have broken the XmlDriver and YamlDriver classes in DoctrineMongoDBBundle?
After updating my symfony submodule to master (today), I noticed exceptions for missing directories being thrown in the getAllClassNames() method. During the iteration over $this->paths
, the element values are being checked as a directory, but they contain namespaces. The actual path is stored as the element key.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just FYI, the fix for DoctrineMongoDBBundle is available here: https://github.com/symfony/DoctrineMongoDBBundle/pull/49. I'm just waiting for a MongoDB guy to merge it. I prefer not doing it myself (even if I could) as I'm not involved directly in this bundle
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh sorry, didnt realize that this of course brakes MongoDB since its also using the same code for mapping definitions.
Per my comment below, it looks like this is the line that broke DoctrineMongoDBBundle. I think a temporary fix will be to modify that bundle's
addPaths()
method to flip its parameter - at least until we can decide on @stof's suggestion: #2463