From e3c46fd2932023ff4a8d09d782984fe359209fe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 14 Sep 2020 10:47:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Database/ActiveQuery.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Database/ActiveQuery.php b/Database/ActiveQuery.php index 9756c3c5..9cbdbde2 100644 --- a/Database/ActiveQuery.php +++ b/Database/ActiveQuery.php @@ -172,15 +172,14 @@ class ActiveQuery extends Component /** * @param int $size - * @param int $offset * @param callable $callback * @return Pagination * @throws Exception */ - public function page(int $size, int $offset, callable $callback) + public function page(int $size, callable $callback) { $pagination = new Pagination($this); - $pagination->setOffset($offset); + $pagination->setOffset(0); $pagination->setLimit($size); $pagination->setCallback($callback); return $pagination;