Commit b0c7dce4 authored by zYne's avatar zYne

fixed record state handling with aggregate values

parent 2125718d
...@@ -175,7 +175,7 @@ abstract class Doctrine_Record extends Doctrine_Record_Abstract implements Count ...@@ -175,7 +175,7 @@ abstract class Doctrine_Record extends Doctrine_Record_Abstract implements Count
$this->prepareIdentifiers($exists); $this->prepareIdentifiers($exists);
if ( ! $exists) { if ( ! $exists) {
if ($count > 0) { if ($count > count($this->_values)) {
$this->_state = Doctrine_Record::STATE_TDIRTY; $this->_state = Doctrine_Record::STATE_TDIRTY;
} else { } else {
$this->_state = Doctrine_Record::STATE_TCLEAN; $this->_state = Doctrine_Record::STATE_TCLEAN;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment