diff --git a/lib/Doctrine/ORM/Tools/EntityRepositoryGenerator.php b/lib/Doctrine/ORM/Tools/EntityRepositoryGenerator.php index 88df4a54d..39cf3eb9f 100644 --- a/lib/Doctrine/ORM/Tools/EntityRepositoryGenerator.php +++ b/lib/Doctrine/ORM/Tools/EntityRepositoryGenerator.php @@ -32,7 +32,7 @@ namespace Doctrine\ORM\Tools; */ class EntityRepositoryGenerator { - protected $_repositoryName = 'Doctrine\ORM\EntityRepository'; + private $repositoryName = 'Doctrine\ORM\EntityRepository'; protected static $_template = ' extends { $namespace = $this->getClassNamespace($fullClassName); - $repositoryName = $this->_repositoryName; + $repositoryName = $this->repositoryName; if ($namespace && $repositoryName[0] !== '\\') { $repositoryName = '\\' . $repositoryName; @@ -162,7 +162,7 @@ class extends */ public function setDefaultRepositoryName($repositoryName) { - $this->_repositoryName = $repositoryName; + $this->repositoryName = $repositoryName; return $this; }