From cb3df20d16a9c0cb102cb2a175b908108a6f7917 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 22 Jan 2021 18:21:21 +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 | 1 + 1 file changed, 1 insertion(+) diff --git a/Database/ActiveRecord.php b/Database/ActiveRecord.php index 9825e9d6..4c3b9ff7 100644 --- a/Database/ActiveRecord.php +++ b/Database/ActiveRecord.php @@ -316,6 +316,7 @@ class ActiveRecord extends BaseActiveRecord if (!$this->hasAnnotation($key)) { continue; } + $item = [$this, $item[1]]; $data[$key] = call_user_func($item, $data[$key]); } return array_merge($data, $this->runRelate());