Changeset 3552

Show
Ignore:
Timestamp:
01/19/08 02:41:26 (18 months ago)
Author:
dbrewer
Message:

Merged r3550 from 0.9 to 0.10 branch.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.10/lib/Doctrine/Record.php

    r3536 r3552  
    426426     * cleanData 
    427427     * leaves the $data array only with values whose key is a field inside this 
    428      * record and returns the values that where removed from $data. 
     428     * record and returns the values that were removed from $data.  Also converts 
     429     * any values of 'null' to objects of type Doctrine_Null. 
    429430     * 
    430431     * @param array $data       data array to be cleaned 
     
    439440            if (isset($tmp[$fieldName])) { 
    440441                $data[$fieldName] = $tmp[$fieldName]; 
     442            } else if (array_key_exists($fieldName, $tmp)) { 
     443                $data[$fieldName] = self::$_null; 
    441444            } else if (!isset($this->_data[$fieldName])) { 
    442445                $data[$fieldName] = self::$_null;