diff --git a/lib/Doctrine/ORM/Tools/Console/Command/GenerateRepositoriesCommand.php b/lib/Doctrine/ORM/Tools/Console/Command/GenerateRepositoriesCommand.php index 917f7ac76..c6c139914 100644 --- a/lib/Doctrine/ORM/Tools/Console/Command/GenerateRepositoriesCommand.php +++ b/lib/Doctrine/ORM/Tools/Console/Command/GenerateRepositoriesCommand.php @@ -93,9 +93,9 @@ EOT if (count($metadatas)) { $numRepositories = 0; $generator = new EntityRepositoryGenerator(); - + $generator->setDefaultRepositoryName($repositoryName); - + foreach ($metadatas as $metadata) { if ($metadata->customRepositoryClassName) { $output->writeln( diff --git a/lib/Doctrine/ORM/Tools/EntityRepositoryGenerator.php b/lib/Doctrine/ORM/Tools/EntityRepositoryGenerator.php index 24c30568c..a5056a452 100644 --- a/lib/Doctrine/ORM/Tools/EntityRepositoryGenerator.php +++ b/lib/Doctrine/ORM/Tools/EntityRepositoryGenerator.php @@ -90,7 +90,7 @@ class extends $repositoryName = $this->getDefaultRepositoryName(); if (substr($repositoryName, 0, 1) != '\\') { - $repositoryName = '\\'.$repositoryName; + $repositoryName = '\\' . $repositoryName; } return $repositoryName;