Changeset 4908

Show
Ignore:
Timestamp:
09/11/08 18:42:45 (10 months ago)
Author:
guilhermeblanco
Message:

fixes #1451. Thanks for the patch!

Files:
1 modified

Legend:

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

    r4759 r4908  
    120120            $this->_rows[$className][$rowKey] = $row; 
    121121 
    122             foreach ($row as $key => $value) { 
     122            foreach ((array) $row as $key => $value) { 
    123123                if (Doctrine::getTable($className)->hasRelation($key) && is_array($value)) { 
    124124                    $keys = array_keys($value); 
     
    191191        $obj = $this->_importedObjects[$rowKey]; 
    192192 
    193         foreach ($row as $key => $value) { 
     193        foreach ((array) $row as $key => $value) { 
    194194            if (method_exists($obj, 'set' . Doctrine_Inflector::classify($key))) { 
    195195                $func = 'set' . Doctrine_Inflector::classify($key);