1
0
mirror of synced 2025-01-09 18:47:10 +03:00

Visibility for EntityRepositoryGenerator::$repositoryName

This commit is contained in:
encoder64 2014-08-09 13:20:27 +03:00
parent df80d82aab
commit 20b72ef344

View File

@ -32,7 +32,7 @@ namespace Doctrine\ORM\Tools;
*/
class EntityRepositoryGenerator
{
protected $_repositoryName = 'Doctrine\ORM\EntityRepository';
private $repositoryName = 'Doctrine\ORM\EntityRepository';
protected static $_template =
'<?php
@ -123,7 +123,7 @@ class <className> extends <repositoryName>
{
$namespace = $this->getClassNamespace($fullClassName);
$repositoryName = $this->_repositoryName;
$repositoryName = $this->repositoryName;
if ($namespace && $repositoryName[0] !== '\\') {
$repositoryName = '\\' . $repositoryName;
@ -162,7 +162,7 @@ class <className> extends <repositoryName>
*/
public function setDefaultRepositoryName($repositoryName)
{
$this->_repositoryName = $repositoryName;
$this->repositoryName = $repositoryName;
return $this;
}