Commit 09a48a89 authored by jwage's avatar jwage

[2.0][DDC-34] Fixing issue with duplicate association mappings when dealing...

[2.0][DDC-34] Fixing issue with duplicate association mappings when dealing with mapped super classes
parent dba07641
...@@ -128,7 +128,11 @@ class AnnotationDriver implements Driver ...@@ -128,7 +128,11 @@ class AnnotationDriver implements Driver
// Evaluate annotations on properties/fields // Evaluate annotations on properties/fields
foreach ($class->getProperties() as $property) { foreach ($class->getProperties() as $property) {
if ($metadata->hasField($property->getName())) { if ($metadata->isMappedSuperclass && ! $property->isPrivate()
||
$metadata->isInheritedField($property->name)
||
$metadata->isInheritedAssociation($property->name)) {
continue; continue;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment