From e98bbc0a31b99806d2254f07153021034d8b1e4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 16 Mar 2021 10:43:27 +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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Database/ActiveRecord.php b/Database/ActiveRecord.php index b5aed196..87c46688 100644 --- a/Database/ActiveRecord.php +++ b/Database/ActiveRecord.php @@ -268,6 +268,9 @@ class ActiveRecord extends BaseActiveRecord public function toArray(): array { $data = $this->_attributes; + + var_dump($this->getAnnotation(self::ANNOTATION_GET)); + foreach ($this->getAnnotation(self::ANNOTATION_GET) as $key => $item) { if (!isset($data[$key])) continue;