1
0
mirror of synced 2024-12-14 23:26:04 +03:00

DDC-1024 - Do not generate setter/getter for inherited fields.

This commit is contained in:
Benjamin Eberlei 2011-02-12 17:40:07 +01:00
parent 4ecb582c76
commit c456f27f60

View File

@ -639,7 +639,8 @@ public function <methodName>()
$lines = array();
foreach ($metadata->fieldMappings as $fieldMapping) {
if ($this->_hasProperty($fieldMapping['fieldName'], $metadata)) {
if ($this->_hasProperty($fieldMapping['fieldName'], $metadata) ||
$metadata->isInheritedField($fieldMapping['fieldName'])) {
continue;
}