From c456f27f608952e422423e7b923b9dd964cadb40 Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Sat, 12 Feb 2011 17:40:07 +0100 Subject: [PATCH] DDC-1024 - Do not generate setter/getter for inherited fields. --- lib/Doctrine/ORM/Tools/EntityGenerator.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Doctrine/ORM/Tools/EntityGenerator.php b/lib/Doctrine/ORM/Tools/EntityGenerator.php index 5f404c0da..019399fcd 100644 --- a/lib/Doctrine/ORM/Tools/EntityGenerator.php +++ b/lib/Doctrine/ORM/Tools/EntityGenerator.php @@ -639,7 +639,8 @@ public function () $lines = array(); foreach ($metadata->fieldMappings as $fieldMapping) { - if ($this->_hasProperty($fieldMapping['fieldName'], $metadata)) { + if ($this->_hasProperty($fieldMapping['fieldName'], $metadata) || + $metadata->isInheritedField($fieldMapping['fieldName'])) { continue; }