From 3dc2a6858389bee62b9cee5f7695818cce77f73c Mon Sep 17 00:00:00 2001 From: encoder64 Date: Sun, 27 Jul 2014 15:22:51 +0300 Subject: [PATCH] simple fixes --- .../ORM/Tools/EntityRepositoryGenerator.php | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) 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; - } - }