[2.0][DDC-34] Fixing issue with duplicate association mappings when dealing with mapped super classes
This commit is contained in:
parent
dba0764115
commit
09a48a896e
1 changed files with 5 additions and 1 deletions
|
@ -128,7 +128,11 @@ class AnnotationDriver implements Driver
|
|||
|
||||
// Evaluate annotations on properties/fields
|
||||
foreach ($class->getProperties() as $property) {
|
||||
if ($metadata->hasField($property->getName())) {
|
||||
if ($metadata->isMappedSuperclass && ! $property->isPrivate()
|
||||
||
|
||||
$metadata->isInheritedField($property->name)
|
||||
||
|
||||
$metadata->isInheritedAssociation($property->name)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue