Changeset 5320

Show
Ignore:
Timestamp:
12/21/08 22:26:20 (7 months ago)
Author:
jwage
Message:

[1.0, 1.1] Reverting r5309 (addresses #1680)

Location:
branches
Files:
2 modified

Legend:

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

    r5309 r5320  
    197197 
    198198        foreach ((array) $row as $key => $value) { 
    199             if (is_callable($obj, 'set' . Doctrine_Inflector::classify($key))) { 
     199            if (method_exists($obj, 'set' . Doctrine_Inflector::classify($key))) { 
    200200                $func = 'set' . Doctrine_Inflector::classify($key); 
    201201                $obj->$func($value); 
  • branches/1.1/lib/Doctrine/Data/Import.php

    r5309 r5320  
    197197 
    198198        foreach ((array) $row as $key => $value) { 
    199             if (is_callable($obj, 'set' . Doctrine_Inflector::classify($key))) { 
     199            if (method_exists($obj, 'set' . Doctrine_Inflector::classify($key))) { 
    200200                $func = 'set' . Doctrine_Inflector::classify($key); 
    201201                $obj->$func($value);