Skip to content

Commit de11f6c

Browse files
committed
Calling fetch on QueryObject instead repository
1 parent 5f3b050 commit de11f6c

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/QueryObjectDataSource.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,7 @@ public function setLimitCallback($callback) {
9494

9595
protected function getResultSet() {
9696
if (!$this->resultSet) {
97-
$this->resultSet = $this->repo
98-
->fetch($this->queryObject);
97+
$this->resultSet = $this->queryObject->fetch();
9998
}
10099

101100
return $this->resultSet;
@@ -106,9 +105,7 @@ protected function getResultSet() {
106105
* @return int
107106
*/
108107
public function getCount(): int {
109-
return $this->repo
110-
->fetch($this->queryObject)
111-
->getTotalCount();
108+
return $this->queryObject->fetch()->getTotalCount();
112109
}
113110

114111
/**

0 commit comments

Comments
 (0)