From 45fe53376d87f2cfcb94e3fef96686172ea50ea7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 22 Jan 2021 17:52:43 +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 57fd9725..9825e9d6 100644 --- a/Database/ActiveRecord.php +++ b/Database/ActiveRecord.php @@ -313,7 +313,7 @@ class ActiveRecord extends BaseActiveRecord { $data = $this->_attributes; foreach ($this->getAnnotation() as $key => $item) { - if (!isset($data[$key])) { + if (!$this->hasAnnotation($key)) { continue; } $data[$key] = call_user_func($item, $data[$key]);