Changeset 4832

Show
Ignore:
Timestamp:
08/27/08 03:01:36 (10 months ago)
Author:
jwage
Message:

fixes #1360

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/1.0/lib/Doctrine/Import/Schema.php

    r4753 r4832  
    473473         
    474474        foreach ($array as $className => $definition) { 
    475             $parent = $this->_findBaseSuperClass($array, $definition['className']); 
    476475            // Move any definitions on the schema to the parent 
    477476            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']); 
    478478                foreach ($moves as $move => $resetValue) { 
    479479                    $array[$parent][$move] = Doctrine_Lib::arrayDeepMerge($array[$parent][$move], $definition[$move]); 
     
    500500    protected function _findBaseSuperClass($array, $class) 
    501501    { 
    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')) { 
    503503            return $this->_findBaseSuperClass($array, $array[$class]['inheritance']['extends']); 
    504504        } else {