1
0
mirror of synced 2025-01-29 19:41:45 +03:00

short classname support for custom repository class

This commit is contained in:
Lenar Lõhmus 2011-08-19 04:44:24 +03:00
parent 7433148f17
commit d7fbd2cd14

View File

@ -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;
}