short classname support for custom repository class
This commit is contained in:
parent
7433148f17
commit
d7fbd2cd14
1 changed files with 4 additions and 0 deletions
|
@ -1518,6 +1518,10 @@ class ClassMetadataInfo implements ClassMetadata
|
|||
*/
|
||||
public function setCustomRepositoryClass($repositoryClassName)
|
||||
{
|
||||
if ($repositoryClassName !== null && strpos($repositoryClassName, '\\') === false
|
||||
&& strlen($this->namespace) > 0) {
|
||||
$repositoryClassName = $this->namespace . '\\' . $repositoryClassName;
|
||||
}
|
||||
$this->customRepositoryClassName = $repositoryClassName;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue