diff --git a/src/ORM/Query.php b/src/ORM/Query.php index 442c87a3b96..7739e1036be 100644 --- a/src/ORM/Query.php +++ b/src/ORM/Query.php @@ -694,7 +694,7 @@ public function __clone() */ public function count() { - if (isset($this->_resultsCount)) { + if (!$this->_dirty && isset($this->_resultsCount)) { return $this->_resultsCount; }