Changeset 5209 for branches/1.0/lib
- Timestamp:
- 11/21/08 16:42:15 (7 weeks ago)
- Files:
-
- 1 modified
-
branches/1.0/lib/Doctrine/Record/Abstract.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/lib/Doctrine/Record/Abstract.php
r4957 r5209 129 129 { 130 130 if (isset($map[get_class($this)])) { 131 $this->_table->setOption('inheritanceMap', $map[get_class($this)]); 131 // fix for #1621 132 $mapFieldNames = $map[get_class($this)]; 133 $mapColumnNames = array(); 134 135 foreach ($mapFieldNames as $fieldName => $val) { 136 $mapColumnNames[$this->getTable()->getColumnName($fieldName)] = $val; 137 } 138 139 $this->_table->setOption('inheritanceMap', $mapColumnNames); 132 140 return; 133 141 }