diff --git a/source/Spiral/Database/Builders/SelectQuery.php b/source/Spiral/Database/Builders/SelectQuery.php index 31fd8372..5cd3e79f 100644 --- a/source/Spiral/Database/Builders/SelectQuery.php +++ b/source/Spiral/Database/Builders/SelectQuery.php @@ -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