From 81e899fceb2da61d8af74293b047cefba1e4d202 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 31 Mar 2021 01:54:36 +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/ActiveRecord.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Database/ActiveRecord.php b/Database/ActiveRecord.php index 43c5380a..f7908a7f 100644 --- a/Database/ActiveRecord.php +++ b/Database/ActiveRecord.php @@ -144,7 +144,7 @@ class ActiveRecord extends BaseActiveRecord * @return bool|static * @throws Exception */ - public static function updateOrCreate(array $condition, array $attributes = []): bool|static + public static function createAndUpdate(array $condition, array $attributes = []): bool|static { if (empty($attributes)) { return \logger()->addError(FIND_OR_CREATE_MESSAGE, 'mysql');