Changeset 5321
- Timestamp:
- 12/21/08 22:34:19 (7 months ago)
- Location:
- branches
- Files:
-
- 2 modified
-
1.0/lib/Doctrine/Data/Import.php (modified) (1 diff)
-
1.1/lib/Doctrine/Data/Import.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/lib/Doctrine/Data/Import.php
r5320 r5321 220 220 $obj->set($key, $this->_getImportedObject($value, $obj, $key, $rowKey)); 221 221 } 222 // used for Doctrine plugin methods (Doctrine_Template) 223 } else if (is_callable(array($obj, 'set' . Doctrine_Inflector::classify($key)))) { 224 $func = 'set' . Doctrine_Inflector::classify($key); 225 $obj->$func($value); 222 226 } else { 223 227 throw new Doctrine_Data_Exception('Invalid fixture element "'. $key . '" under "' . $rowKey . '"'); -
branches/1.1/lib/Doctrine/Data/Import.php
r5320 r5321 220 220 $obj->set($key, $this->_getImportedObject($value, $obj, $key, $rowKey)); 221 221 } 222 // used for Doctrine plugin methods (Doctrine_Template) 223 } else if (is_callable(array($obj, 'set' . Doctrine_Inflector::classify($key)))) { 224 $func = 'set' . Doctrine_Inflector::classify($key); 225 $obj->$func($value); 222 226 } else { 223 227 throw new Doctrine_Data_Exception('Invalid fixture element "'. $key . '" under "' . $rowKey . '"');