Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
new pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy-j committed Feb 12, 2017
1 parent cb967ec commit 88bb128
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/Spiral/Database/Builders/SelectQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ public function run(bool $paginate = true)
*/
$select = clone $this;

//Getting selection specific paginator
$paginator = $this->configurePaginator($this->count());
//Selection specific paginator
$paginator = $this->getPaginator(true);

if (!empty($this->getLimit()) && $this->getLimit() > $paginator->getLimit()) {
//We have to ensure that selection works inside given pagination window
Expand Down

0 comments on commit 88bb128

Please sign in to comment.