Merge pull request #108 from lenar/patch-1
short classname support for custom repository class
This commit is contained in:
commit
736443f6c2
@ -1518,6 +1518,10 @@ class ClassMetadataInfo implements ClassMetadata
|
|||||||
*/
|
*/
|
||||||
public function setCustomRepositoryClass($repositoryClassName)
|
public function setCustomRepositoryClass($repositoryClassName)
|
||||||
{
|
{
|
||||||
|
if ($repositoryClassName !== null && strpos($repositoryClassName, '\\') === false
|
||||||
|
&& strlen($this->namespace) > 0) {
|
||||||
|
$repositoryClassName = $this->namespace . '\\' . $repositoryClassName;
|
||||||
|
}
|
||||||
$this->customRepositoryClassName = $repositoryClassName;
|
$this->customRepositoryClassName = $repositoryClassName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user