From 71766ee9142ba4b98d7b83be76af40de0c26c833 Mon Sep 17 00:00:00 2001 From: whwyy Date: Fri, 26 Apr 2024 15:26:10 +0800 Subject: [PATCH] eee --- ActiveQuery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ActiveQuery.php b/ActiveQuery.php index fac0ac6..da32d84 100644 --- a/ActiveQuery.php +++ b/ActiveQuery.php @@ -154,7 +154,7 @@ class ActiveQuery extends QueryTrait implements ISqlBuilder */ public function count(): int { - $search = $this->buildCommand($this->builder->count())->one(); + return $this->buildCommand($this->builder->count())->rowCount(); return !$search ? 0 : current($search); }