From 486d1f56cdcec37d7c1216f926b66a171d9bb8ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 27 Apr 2021 18:36:23 +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 fd228f5d..c592b055 100644 --- a/Database/ActiveRecord.php +++ b/Database/ActiveRecord.php @@ -305,7 +305,7 @@ class ActiveRecord extends BaseActiveRecord */ public function toArray(): array { - $data = $this->_attributes; + return $this->_attributes; $lists = $this->getAnnotation(self::GET); foreach ($lists as $key => $item) {