Changeset 3702

Show
Ignore:
Timestamp:
02/05/08 20:55:23 (17 months ago)
Author:
romanb
Message:

Fixed an update bug in class table inheritance.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.10/lib/Doctrine/Connection/UnitOfWork.php

    r3434 r3702  
    650650     
    651651        foreach ($table->getColumns() as $columnName => $definition) { 
     652            if ( ! isset($dataSet[$component])) { 
     653                $dataSet[$component] = array(); 
     654            } 
     655             
    652656            $fieldName = $table->getFieldName($columnName); 
    653657            if (isset($definition['primary']) && $definition['primary']) { 
     658                continue; 
     659            } 
     660     
     661            if ( ! array_key_exists($fieldName, $array)) { 
    654662                continue; 
    655663            } 
     
    660668                $dataSet[$component][$fieldName] = $array[$fieldName]; 
    661669            } 
    662         }     
     670        } 
    663671         
    664672        return $dataSet;