diff --git a/lib/Doctrine/Record.php b/lib/Doctrine/Record.php index d30276958..72dc581f7 100644 --- a/lib/Doctrine/Record.php +++ b/lib/Doctrine/Record.php @@ -1537,6 +1537,10 @@ protected function _isValueModified($type, $old, $new) return true; } + if (($old === null || $old instanceof Doctrine_Null) && ($new == null || $new instanceof Doctrine_Null)) { + return false; + } + if ($type == 'boolean' && (is_bool($old) || is_numeric($old)) && (is_bool($new) || is_numeric($new)) && $old == $new) { return false; } else if (in_array($type, array('decimal', 'float')) && is_numeric($old) && is_numeric($new)) {