[DDC-1109] ltrim discriminator map for convenience.
This commit is contained in:
parent
b462cfbe2b
commit
7dd0dd273e
@ -1628,6 +1628,7 @@ class ClassMetadataInfo implements ClassMetadata
|
||||
if (strpos($className, '\\') === false && strlen($this->namespace)) {
|
||||
$className = $this->namespace . '\\' . $className;
|
||||
}
|
||||
$className = ltrim($className, '\\');
|
||||
$this->discriminatorMap[$value] = $className;
|
||||
if ($this->name == $className) {
|
||||
$this->discriminatorValue = $value;
|
||||
|
Loading…
Reference in New Issue
Block a user