From d639504842c2855f2e11470b58ec0b6f3bc1da49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 19 Jan 2021 19:14:18 +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, 2 insertions(+) diff --git a/Database/ActiveRecord.php b/Database/ActiveRecord.php index fe95d9b5..d8594ceb 100644 --- a/Database/ActiveRecord.php +++ b/Database/ActiveRecord.php @@ -313,6 +313,8 @@ class ActiveRecord extends BaseActiveRecord $attributes = Snowflake::app()->getAttributes(); $callback = $attributes->getByClass(static::class); + var_dump($callback); + $data = $this->_attributes; foreach ($callback as $key => $item) { $data[$key] = call_user_func($item, $data[$key]);