Skip to content

Commit

Permalink
pkp/pkp-lib#8700 Dropped safeCount() workaround in favor of getCountF…
Browse files Browse the repository at this point in the history
…orPagination()
  • Loading branch information
jonasraoni committed May 23, 2024
1 parent 744a783 commit 0a5fe2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions classes/services/queryBuilders/GalleyQueryBuilder.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ public function filterByPublicationIds($publicationIds) {
public function getCount() {
return $this
->getQuery()
->safeCount();
->getCountForPagination();
}

/**
* @copydoc PKP\Services\QueryBuilders\Interfaces\EntityQueryBuilderInterface::getCount()
* @copydoc PKP\Services\QueryBuilders\Interfaces\EntityQueryBuilderInterface::getIds()
*/
public function getIds() {
return $this
Expand All @@ -56,7 +56,7 @@ public function getIds() {
}

/**
* @copydoc PKP\Services\QueryBuilders\Interfaces\EntityQueryBuilderInterface::getCount()
* @copydoc PKP\Services\QueryBuilders\Interfaces\EntityQueryBuilderInterface::getQuery()
*/
public function getQuery() {
$this->columns = ['*'];
Expand Down

0 comments on commit 0a5fe2a

Please sign in to comment.