From 924dcbc27ac0a10e9642ed3197950a8930d78783 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 5 Mar 2021 18:18:14 +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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Database/ActiveRecord.php b/Database/ActiveRecord.php index 75329143..67bb013c 100644 --- a/Database/ActiveRecord.php +++ b/Database/ActiveRecord.php @@ -269,6 +269,10 @@ class ActiveRecord extends BaseActiveRecord { $data = $this->_attributes; foreach ($this->getAnnotation(self::ANNOTATION_GET) as $key => $item) { + + var_dump($data, $key); + if (!isset($data[$key])) continue; + $data[$key] = $this->runAnnotation($key, $data[$key] ?? null); } $data = array_merge($data, $this->runRelate());