Savecounters And Null Values

The saveCounters method does not work if the (default) value of a database field is NULL, the value stays NULL then. In most cases I, and i think many people with me, use default NULL values for my database fields. It would be nice when if the current value is NULL, the value is added anyway.

Something like this in CActiveRecord in the saveCounters() method:

foreach($counters as $name=>$value)

            $this->$name = (($this->$name === null)?0:$this->$name)+$value;

I always use these default values