From fdf696624c77bb3a29883080967e36a49ba7dd39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Mon, 10 Apr 2023 17:34:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ActiveQuery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ActiveQuery.php b/ActiveQuery.php index 7f88ad9..b8c4bc2 100644 --- a/ActiveQuery.php +++ b/ActiveQuery.php @@ -247,7 +247,7 @@ class ActiveQuery extends Component implements ISqlBuilder */ public function populate($data): ModelInterface|array { - $model = $this->modelClass::populate($data); + $model = $this->modelClass->populates($data); if ($this->asArray) { return $model->toArray(); } else {