Skip to content
Permalink
Browse files

use SplFixedArray count method

  • Loading branch information...
thinkingmedia
thinkingmedia committed Jan 30, 2017
1 parent a728cb2 commit 9177f56340561a352805449b0a330b46ff773a93
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/ORM/ResultSet.php
@@ -355,7 +355,13 @@ public function count()
return $this->_count = $this->_statement->rowCount();
}
return $this->_count = count($this->_results);
if($this->_results instanceof SplFixedArray) {
$this->_count = $this->_results->count();
} else {
$this->_count = count($this->_results);
}
return $this->_count;
}
/**

0 comments on commit 9177f56

Please sign in to comment.
You can’t perform that action at this time.