Merge remote branch 'thesalla/generate_repos_fix'

This commit is contained in:
Fabien Potencier 2011-03-22 16:12:29 +01:00
commit 46fc044d32
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ EOT
} }
if ($metadata->customRepositoryClassName) { if ($metadata->customRepositoryClassName) {
if (strpos($metadata->customRepositoryClassName, $foundBundle->getName()) === false) { if (strpos($metadata->customRepositoryClassName, $foundBundle->getNamespace()) === false) {
throw new \RuntimeException( throw new \RuntimeException(
"Repository " . $metadata->customRepositoryClassName . " and bundle don't have a common namespace, ". "Repository " . $metadata->customRepositoryClassName . " and bundle don't have a common namespace, ".
"generation failed because the target directory cannot be detected."); "generation failed because the target directory cannot be detected.");

View File

@ -58,7 +58,7 @@ EOT
} }
if ($metadata->customRepositoryClassName) { if ($metadata->customRepositoryClassName) {
if (strpos($metadata->customRepositoryClassName, $foundBundle->getName()) === false) { if (strpos($metadata->customRepositoryClassName, $foundBundle->getNamespace()) === false) {
throw new \RuntimeException( throw new \RuntimeException(
"Repository " . $metadata->customRepositoryClassName . " and bundle don't have a common namespace, ". "Repository " . $metadata->customRepositoryClassName . " and bundle don't have a common namespace, ".
"generation failed because the target directory cannot be detected."); "generation failed because the target directory cannot be detected.");