DDC-511 - MappedSuperclasses specifications of inheritance mapping details make no sense and are ignored
This commit is contained in:
parent
ae76b2ab8d
commit
c1661dd53e
@ -262,15 +262,19 @@ class ClassMetadataFactory
|
|||||||
$class = $this->newClassMetadataInstance($className);
|
$class = $this->newClassMetadataInstance($className);
|
||||||
|
|
||||||
if ($parent) {
|
if ($parent) {
|
||||||
$class->setInheritanceType($parent->inheritanceType);
|
if (!$parent->isMappedSuperclass) {
|
||||||
$class->setDiscriminatorColumn($parent->discriminatorColumn);
|
$class->setInheritanceType($parent->inheritanceType);
|
||||||
|
$class->setDiscriminatorColumn($parent->discriminatorColumn);
|
||||||
|
}
|
||||||
$class->setIdGeneratorType($parent->generatorType);
|
$class->setIdGeneratorType($parent->generatorType);
|
||||||
$this->addInheritedFields($class, $parent);
|
$this->addInheritedFields($class, $parent);
|
||||||
$this->addInheritedRelations($class, $parent);
|
$this->addInheritedRelations($class, $parent);
|
||||||
$class->setIdentifier($parent->identifier);
|
$class->setIdentifier($parent->identifier);
|
||||||
$class->setVersioned($parent->isVersioned);
|
$class->setVersioned($parent->isVersioned);
|
||||||
$class->setVersionField($parent->versionField);
|
$class->setVersionField($parent->versionField);
|
||||||
$class->setDiscriminatorMap($parent->discriminatorMap);
|
if (!$parent->isMappedSuperclass) {
|
||||||
|
$class->setDiscriminatorMap($parent->discriminatorMap);
|
||||||
|
}
|
||||||
$class->setLifecycleCallbacks($parent->lifecycleCallbacks);
|
$class->setLifecycleCallbacks($parent->lifecycleCallbacks);
|
||||||
$class->setChangeTrackingPolicy($parent->changeTrackingPolicy);
|
$class->setChangeTrackingPolicy($parent->changeTrackingPolicy);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user