From 1705d3d3f8e925a2addaf0f7bbb47119c6e460c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 31 Mar 2021 01:56:56 +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 f7908a7f..081ddbde 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 createAndUpdate(array $condition, array $attributes = []): bool|static + public static function createOrUpdate(array $condition, array $attributes = []): bool|static { if (empty($attributes)) { return \logger()->addError(FIND_OR_CREATE_MESSAGE, 'mysql');