From 9d23efaed83a77812cb8b0494560e235d0c76e2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 1 Mar 2022 17:17:23 +0800 Subject: [PATCH] modify plugin name --- Base/Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Base/Model.php b/Base/Model.php index 109fa44..7c6a83b 100644 --- a/Base/Model.php +++ b/Base/Model.php @@ -621,7 +621,7 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, T return FALSE; } [$change, $condition, $fields] = $this->separation(); - if (!empty($this->_oldAttributes)) { + if (!$this->getIsNowExample()) { return $this->updateInternal($fields, $condition, $change); } else { return $this->insert($change, $fields);