From 198b34c0b492be3598c4aec79d707af8e58a7b8b Mon Sep 17 00:00:00 2001 From: romanb Date: Sun, 21 Oct 2007 20:12:36 +0000 Subject: [PATCH] fix to assignDefaultValues. should fix #468 --- lib/Doctrine/Record.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/Record.php b/lib/Doctrine/Record.php index d2b351c6b..859f8765d 100644 --- a/lib/Doctrine/Record.php +++ b/lib/Doctrine/Record.php @@ -408,9 +408,9 @@ abstract class Doctrine_Record extends Doctrine_Record_Abstract implements Count $default = $this->_table->getDefaultValueOf($column); if ($default === null) { - $default = self::$_null; + continue; } - + if ($value === self::$_null || $overwrite) { $this->_data[$column] = $default; $this->_modified[] = $column;