Changeset 3793 for branches/0.10/lib/Doctrine/Data/Import.php
- Timestamp:
- 02/15/08 13:39:08 (2 years ago)
- Files:
-
- 1 modified
-
branches/0.10/lib/Doctrine/Data/Import.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.10/lib/Doctrine/Data/Import.php
r3415 r3793 131 131 if ($obj->getTable()->hasField($key)) { 132 132 $obj->set($key, $value); 133 } else if (method_exists($obj, 'set' . Doctrine::classify($key))) { 134 $func = 'set' . Doctrine::classify($key); 135 $obj->$func($value); 133 136 } else if ($obj->getTable()->hasRelation($key)) { 134 137 if (is_array($value)) { … … 150 153 $obj->set($key, $this->_getImportedObject($value)); 151 154 } 152 } else if (method_exists($obj, 'set' . Doctrine::classify($key))) {153 $func = 'set' . Doctrine::classify($key);154 $obj->$func($value);155 155 } 156 156 }