1
0
mirror of synced 2025-01-18 06:21:40 +03:00

fixed record state handling with aggregate values

This commit is contained in:
zYne 2007-10-29 23:34:10 +00:00
parent 2125718d30
commit b0c7dce47f

View File

@ -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;