Changeset 3552
- Timestamp:
- 01/19/08 02:41:26 (18 months ago)
- Files:
-
- 1 modified
-
branches/0.10/lib/Doctrine/Record.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.10/lib/Doctrine/Record.php
r3536 r3552 426 426 * cleanData 427 427 * 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. 429 430 * 430 431 * @param array $data data array to be cleaned … … 439 440 if (isset($tmp[$fieldName])) { 440 441 $data[$fieldName] = $tmp[$fieldName]; 442 } else if (array_key_exists($fieldName, $tmp)) { 443 $data[$fieldName] = self::$_null; 441 444 } else if (!isset($this->_data[$fieldName])) { 442 445 $data[$fieldName] = self::$_null;