Changeset 4908
- Timestamp:
- 09/11/08 14:42:45 (18 months ago)
- Files:
-
- 1 modified
-
branches/1.0/lib/Doctrine/Data/Import.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/lib/Doctrine/Data/Import.php
r4759 r4908 120 120 $this->_rows[$className][$rowKey] = $row; 121 121 122 foreach ( $row as $key => $value) {122 foreach ((array) $row as $key => $value) { 123 123 if (Doctrine::getTable($className)->hasRelation($key) && is_array($value)) { 124 124 $keys = array_keys($value); … … 191 191 $obj = $this->_importedObjects[$rowKey]; 192 192 193 foreach ( $row as $key => $value) {193 foreach ((array) $row as $key => $value) { 194 194 if (method_exists($obj, 'set' . Doctrine_Inflector::classify($key))) { 195 195 $func = 'set' . Doctrine_Inflector::classify($key);