From b9750d743b36c27e3c6980852039a253c3047902 Mon Sep 17 00:00:00 2001 From: whwyy Date: Fri, 26 Apr 2024 15:12:31 +0800 Subject: [PATCH] eee --- ActiveQuery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ActiveQuery.php b/ActiveQuery.php index 841fdf4..c9fd4e8 100644 --- a/ActiveQuery.php +++ b/ActiveQuery.php @@ -154,7 +154,7 @@ class ActiveQuery extends QueryTrait implements ISqlBuilder */ public function count(): int { - return $this->buildCommand($this->builder->count())->rowCount(); + return $this->buildCommand($this->select(['count(*)'])->builder->count())->rowCount(); }