Changeset 3793

Show
Ignore:
Timestamp:
02/15/08 18:39:08 (17 months ago)
Author:
jwage
Message:

Fixed order of if else to match 0.9

Files:
1 modified

Legend:

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

    r3415 r3793  
    131131            if ($obj->getTable()->hasField($key)) { 
    132132                $obj->set($key, $value); 
     133            } else if (method_exists($obj, 'set' . Doctrine::classify($key))) { 
     134                    $func = 'set' . Doctrine::classify($key); 
     135                    $obj->$func($value); 
    133136            } else if ($obj->getTable()->hasRelation($key)) { 
    134137                if (is_array($value)) { 
     
    150153                    $obj->set($key, $this->_getImportedObject($value)); 
    151154                } 
    152             } else if (method_exists($obj, 'set' . Doctrine::classify($key))) { 
    153                 $func = 'set' . Doctrine::classify($key); 
    154                 $obj->$func($value); 
    155155            } 
    156156        }