Skip to content

Commit

Permalink
Only if the query object is not dirty
Browse files Browse the repository at this point in the history
  • Loading branch information
AD7six committed Oct 21, 2015
1 parent ba9c64f commit fcf7373
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ORM/Query.php
Expand Up @@ -694,7 +694,7 @@ public function __clone()
*/
public function count()
{
if (isset($this->_resultsCount)) {
if (!$this->_dirty && isset($this->_resultsCount)) {
return $this->_resultsCount;
}

Expand Down

0 comments on commit fcf7373

Please sign in to comment.