1
0
Fork 0
mirror of synced 2025-04-01 12:26:11 +03:00

[2.0][DDC-34] Fixing issue with duplicate association mappings when dealing with mapped super classes

This commit is contained in:
jwage 2009-10-07 18:53:30 +00:00
parent dba0764115
commit 09a48a896e

View file

@ -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;
}