Visibility for EntityRepositoryGenerator::$repositoryName
This commit is contained in:
parent
df80d82aab
commit
20b72ef344
@ -32,7 +32,7 @@ namespace Doctrine\ORM\Tools;
|
|||||||
*/
|
*/
|
||||||
class EntityRepositoryGenerator
|
class EntityRepositoryGenerator
|
||||||
{
|
{
|
||||||
protected $_repositoryName = 'Doctrine\ORM\EntityRepository';
|
private $repositoryName = 'Doctrine\ORM\EntityRepository';
|
||||||
|
|
||||||
protected static $_template =
|
protected static $_template =
|
||||||
'<?php
|
'<?php
|
||||||
@ -123,7 +123,7 @@ class <className> extends <repositoryName>
|
|||||||
{
|
{
|
||||||
$namespace = $this->getClassNamespace($fullClassName);
|
$namespace = $this->getClassNamespace($fullClassName);
|
||||||
|
|
||||||
$repositoryName = $this->_repositoryName;
|
$repositoryName = $this->repositoryName;
|
||||||
|
|
||||||
if ($namespace && $repositoryName[0] !== '\\') {
|
if ($namespace && $repositoryName[0] !== '\\') {
|
||||||
$repositoryName = '\\' . $repositoryName;
|
$repositoryName = '\\' . $repositoryName;
|
||||||
@ -162,7 +162,7 @@ class <className> extends <repositoryName>
|
|||||||
*/
|
*/
|
||||||
public function setDefaultRepositoryName($repositoryName)
|
public function setDefaultRepositoryName($repositoryName)
|
||||||
{
|
{
|
||||||
$this->_repositoryName = $repositoryName;
|
$this->repositoryName = $repositoryName;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user