Changeset 4819
- Timestamp:
- 08/26/08 18:02:11 (2 years ago)
- Files:
-
- 1 modified
-
branches/1.0/lib/Doctrine/Record.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/lib/Doctrine/Record.php
r4813 r4819 1196 1196 } else { 1197 1197 $identifier = (array) $this->getTable()->getIdentifier(); 1198 return $conn->replace($this->_table, $this->toArray(), $identifier); 1198 $data = array(); 1199 foreach ($this as $column => $value) { 1200 if ($value === self::$_null || is_object($value)) { 1201 $value = null; 1202 } 1203 1204 $data[$column] = $value; 1205 } 1206 1207 return $conn->replace($this->_table, $data, $identifier); 1199 1208 } 1200 1209 }