1
0
mirror of synced 2025-01-18 06:21:40 +03:00

Merge pull request #108 from lenar/patch-1

short classname support for custom repository class
This commit is contained in:
Guilherme Blanco 2011-08-18 11:03:43 -07:00
commit 736443f6c2

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