Changeset 3550
- Timestamp:
- 01/19/08 02:25:14 (18 months ago)
- Files:
-
- 1 modified
-
branches/0.9/lib/Doctrine/Record.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.9/lib/Doctrine/Record.php
r3536 r3550 426 426 /** 427 427 * cleanData 428 * leaves the $data array only with values whose key is a field inside this 429 * record and returns the values that were removed from $data. Also converts 430 * any values of 'null' to objects of type Doctrine_Null. 428 431 * 429 432 * @param array $data data array to be cleaned 430 * @return integer433 * @return array $tmp values cleaned from data 431 434 */ 432 435 public function cleanData(&$data) … … 438 441 if (isset($tmp[$name])) { 439 442 $data[$name] = $tmp[$name]; 443 } else if (array_key_exists($name, $tmp)) { 444 $data[$name] = self::$_null; 440 445 } else if (!isset($this->_data[$name])) { 441 446 $data[$name] = self::$_null;