Merge pull request #328 from Netpositive/master
addDiscriminatorMapClass fix
This commit is contained in:
commit
a1a9f85fda
@ -2044,7 +2044,7 @@ class ClassMetadataInfo implements ClassMetadata
|
||||
if ( ! class_exists($className)) {
|
||||
throw MappingException::invalidClassInDiscriminatorMap($className, $this->name);
|
||||
}
|
||||
if (is_subclass_of($className, $this->name)) {
|
||||
if (is_subclass_of($className, $this->name) && ! in_array($className, $this->subClasses)) {
|
||||
$this->subClasses[] = $className;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user