[DoctrineBundle][DoctrineMongoDBBUndle]Fixed generate:repositories throws exception using the general bundle naming conventions (VendorBundleName)
This commit is contained in:
parent
4f0e0a6193
commit
2840f03409
@ -58,7 +58,7 @@ EOT
|
||||
}
|
||||
|
||||
if ($metadata->customRepositoryClassName) {
|
||||
if (strpos($metadata->customRepositoryClassName, $foundBundle->getName()) === false) {
|
||||
if (strpos($metadata->customRepositoryClassName, $foundBundle->getNamespace()) === false) {
|
||||
throw new \RuntimeException(
|
||||
"Repository " . $metadata->customRepositoryClassName . " and bundle don't have a common namespace, ".
|
||||
"generation failed because the target directory cannot be detected.");
|
||||
|
@ -58,7 +58,7 @@ EOT
|
||||
}
|
||||
|
||||
if ($metadata->customRepositoryClassName) {
|
||||
if (strpos($metadata->customRepositoryClassName, $foundBundle->getName()) === false) {
|
||||
if (strpos($metadata->customRepositoryClassName, $foundBundle->getNamespace()) === false) {
|
||||
throw new \RuntimeException(
|
||||
"Repository " . $metadata->customRepositoryClassName . " and bundle don't have a common namespace, ".
|
||||
"generation failed because the target directory cannot be detected.");
|
||||
|
Reference in New Issue
Block a user