From f0b9020cb98cf9559b84d5328462d22d43ab9280 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Wed, 7 Feb 2024 14:53:39 +1300 Subject: [PATCH] fix: better result list api --- src/PaginatedList.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/PaginatedList.php b/src/PaginatedList.php index 41cbfed..9af899e 100644 --- a/src/PaginatedList.php +++ b/src/PaginatedList.php @@ -9,6 +9,15 @@ */ class PaginatedList extends \SilverStripe\ORM\PaginatedList { + protected $list; + + public function __construct(ResultList $list, $request = []) + { + $this->setRequest($request); + $this->list = $list; + } + + /** * Use the ResultList's total items method to determine this value *