Skip to content

Commit 3ac9449

Browse files
author
Tom Kuijer
committed
Add corrected functionality for counting for pagination
1 parent 3a2b505 commit 3ac9449

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Database/Query/FMBaseBuilder.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,4 +1071,9 @@ protected function invalidOperatorAndValue($operator, $value)
10711071
return is_null($value) && in_array($operator, $this->operators) &&
10721072
! in_array($operator, ['=', '==', '!=', '']);
10731073
}
1074+
1075+
public function getCountForPagination($columns = ['*'])
1076+
{
1077+
return $this->count($columns);
1078+
}
10741079
}

0 commit comments

Comments
 (0)