diff --git a/lib/Doctrine/ORM/Tools/EntityRepositoryGenerator.php b/lib/Doctrine/ORM/Tools/EntityRepositoryGenerator.php index a5056a452..32927645d 100644 --- a/lib/Doctrine/ORM/Tools/EntityRepositoryGenerator.php +++ b/lib/Doctrine/ORM/Tools/EntityRepositoryGenerator.php @@ -75,10 +75,10 @@ class extends * * @return string $namespace */ - protected function generateEntityRepositoryNamespace($fullClassName) + private function generateEntityRepositoryNamespace($fullClassName) { $namespace = substr($fullClassName, 0, strrpos($fullClassName, '\\')); - + return $namespace ? 'namespace ' . $namespace . ';' : ''; } @@ -87,7 +87,7 @@ class extends */ protected function generateEntityRepositoryName() { - $repositoryName = $this->getDefaultRepositoryName(); + $repositoryName = $this->_repositoryName; if (substr($repositoryName, 0, 1) != '\\') { $repositoryName = '\\' . $repositoryName; @@ -130,12 +130,4 @@ class extends return $this; } - /** - * @return string - */ - public function getDefaultRepositoryName() - { - return $this->_repositoryName; - } - }