Changeset 4832
- Timestamp:
- 08/27/08 03:01:36 (10 months ago)
- Files:
-
- 1 modified
-
branches/1.0/lib/Doctrine/Import/Schema.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/lib/Doctrine/Import/Schema.php
r4753 r4832 473 473 474 474 foreach ($array as $className => $definition) { 475 $parent = $this->_findBaseSuperClass($array, $definition['className']);476 475 // Move any definitions on the schema to the parent 477 476 if (isset($definition['inheritance']['extends']) && isset($definition['inheritance']['type']) && ($definition['inheritance']['type'] == 'simple' || $definition['inheritance']['type'] == 'column_aggregation')) { 477 $parent = $this->_findBaseSuperClass($array, $definition['className']); 478 478 foreach ($moves as $move => $resetValue) { 479 479 $array[$parent][$move] = Doctrine_Lib::arrayDeepMerge($array[$parent][$move], $definition[$move]); … … 500 500 protected function _findBaseSuperClass($array, $class) 501 501 { 502 if (isset($array[$class]['inheritance']['extends']) ) {502 if (isset($array[$class]['inheritance']['extends']) && isset($array[$class]['inheritance']['type']) && ($array[$class]['inheritance']['type'] == 'simple' || $array[$class]['inheritance']['type'] == 'column_aggregation')) { 503 503 return $this->_findBaseSuperClass($array, $array[$class]['inheritance']['extends']); 504 504 } else {