fixed record state handling with aggregate values
This commit is contained in:
parent
2125718d30
commit
b0c7dce47f
1 changed files with 1 additions and 1 deletions
|
@ -175,7 +175,7 @@ abstract class Doctrine_Record extends Doctrine_Record_Abstract implements Count
|
|||
$this->prepareIdentifiers($exists);
|
||||
|
||||
if ( ! $exists) {
|
||||
if ($count > 0) {
|
||||
if ($count > count($this->_values)) {
|
||||
$this->_state = Doctrine_Record::STATE_TDIRTY;
|
||||
} else {
|
||||
$this->_state = Doctrine_Record::STATE_TCLEAN;
|
||||
|
|
Loading…
Add table
Reference in a new issue