1
0
mirror of synced 2024-12-13 14:56:01 +03:00

fix to assignDefaultValues. should fix #468

This commit is contained in:
romanb 2007-10-21 20:12:36 +00:00
parent a368726f0a
commit 198b34c0b4

View File

@ -408,9 +408,9 @@ abstract class Doctrine_Record extends Doctrine_Record_Abstract implements Count
$default = $this->_table->getDefaultValueOf($column); $default = $this->_table->getDefaultValueOf($column);
if ($default === null) { if ($default === null) {
$default = self::$_null; continue;
} }
if ($value === self::$_null || $overwrite) { if ($value === self::$_null || $overwrite) {
$this->_data[$column] = $default; $this->_data[$column] = $default;
$this->_modified[] = $column; $this->_modified[] = $column;