fix to assignDefaultValues. should fix #468
This commit is contained in:
parent
a368726f0a
commit
198b34c0b4
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user