Changeset 4589

Show
Ignore:
Timestamp:
06/29/08 00:52:18 (12 months ago)
Author:
jwage
Message:

fixes #1180

Files:
1 modified

Legend:

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

    r4587 r4589  
    472472         
    473473        foreach ($array as $className => $definition) { 
     474            $parent = $this->_findBaseSuperClass($array, $definition['className']); 
    474475            // Move any definitions on the schema to the parent 
    475476            if (isset($definition['inheritance']['extends']) && isset($definition['inheritance']['type']) && ($definition['inheritance']['type'] == 'simple' || $definition['inheritance']['type'] == 'column_aggregation')) { 
    476                 $extends = $definition['inheritance']['extends']; 
    477  
    478477                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]); 
    480479                    $array[$definition['className']][$move] = $resetValue; 
    481480                } 
     
    483482                // Populate the parents subclasses 
    484483                if ($definition['inheritance']['type'] == 'column_aggregation') { 
    485                     $parent = $this->_findBaseSuperClass($array, $definition['className']); 
    486484                    $array[$parent]['inheritance']['subclasses'][$definition['className']] = array($definition['inheritance']['keyField'] => $definition['inheritance']['keyValue']); 
    487485                }