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

simple fixes

This commit is contained in:
encoder64 2014-07-27 15:22:51 +03:00
parent 90efaeec42
commit 3dc2a68583

View File

@ -75,10 +75,10 @@ class <className> extends <repositoryName>
* *
* @return string $namespace * @return string $namespace
*/ */
protected function generateEntityRepositoryNamespace($fullClassName) private function generateEntityRepositoryNamespace($fullClassName)
{ {
$namespace = substr($fullClassName, 0, strrpos($fullClassName, '\\')); $namespace = substr($fullClassName, 0, strrpos($fullClassName, '\\'));
return $namespace ? 'namespace ' . $namespace . ';' : ''; return $namespace ? 'namespace ' . $namespace . ';' : '';
} }
@ -87,7 +87,7 @@ class <className> extends <repositoryName>
*/ */
protected function generateEntityRepositoryName() protected function generateEntityRepositoryName()
{ {
$repositoryName = $this->getDefaultRepositoryName(); $repositoryName = $this->_repositoryName;
if (substr($repositoryName, 0, 1) != '\\') { if (substr($repositoryName, 0, 1) != '\\') {
$repositoryName = '\\' . $repositoryName; $repositoryName = '\\' . $repositoryName;
@ -130,12 +130,4 @@ class <className> extends <repositoryName>
return $this; return $this;
} }
/**
* @return string
*/
public function getDefaultRepositoryName()
{
return $this->_repositoryName;
}
} }