Changeset 4589
- Timestamp:
- 06/29/08 00:52:18 (12 months ago)
- Files:
-
- 1 modified
-
branches/0.11/lib/Doctrine/Import/Schema.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.11/lib/Doctrine/Import/Schema.php
r4587 r4589 472 472 473 473 foreach ($array as $className => $definition) { 474 $parent = $this->_findBaseSuperClass($array, $definition['className']); 474 475 // Move any definitions on the schema to the parent 475 476 if (isset($definition['inheritance']['extends']) && isset($definition['inheritance']['type']) && ($definition['inheritance']['type'] == 'simple' || $definition['inheritance']['type'] == 'column_aggregation')) { 476 $extends = $definition['inheritance']['extends'];477 478 477 foreach ($moves as $move => $resetValue) { 479 $array[$ extends][$move] = Doctrine_Lib::arrayDeepMerge($array[$extends][$move], $definition[$move]);478 $array[$parent][$move] = Doctrine_Lib::arrayDeepMerge($array[$parent][$move], $definition[$move]); 480 479 $array[$definition['className']][$move] = $resetValue; 481 480 } … … 483 482 // Populate the parents subclasses 484 483 if ($definition['inheritance']['type'] == 'column_aggregation') { 485 $parent = $this->_findBaseSuperClass($array, $definition['className']);486 484 $array[$parent]['inheritance']['subclasses'][$definition['className']] = array($definition['inheritance']['keyField'] => $definition['inheritance']['keyValue']); 487 485 }