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

Commit 4f0a815

Browse files
authored
Merge pull request #4 from spiral/fix-paginator
Fix getPaginator
2 parents 36b63d1 + d35cedb commit 4f0a815

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/Spiral/ORM/Entities/RecordSelector.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ public function setPaginator(PaginatorInterface $paginator)
493493
*/
494494
public function getPaginator(bool $prepare = true): PaginatorInterface
495495
{
496-
return $this->loader->initialQuery()->getPaginator($prepare);
496+
return $this->loader->compiledQuery()->getPaginator($prepare);
497497
}
498498

499499
/**

0 commit comments

Comments
 (0)