Skip to content

Commit 0517ac7

Browse files
authored
Update QueryObjectDataSource.php
1 parent c0ef34f commit 0517ac7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/QueryObjectDataSource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function setLimitCallback($callback) {
9494
protected function getResultSet(int $page = 1, ?int $itemsPerPage = null) {
9595
if (!$this->resultSet) {
9696
$this->resultSet = $itemsPerPage
97-
? $this->queryObject->getResultSet($page, $itemsPerPage)->getIterator()
97+
? iterator_to_array($this->queryObject->getResultSet($page, $itemsPerPage)->getIterator())
9898
: $this->queryObject->fetch();
9999
}
100100

0 commit comments

Comments
 (0)