From 8df208f1777896b3e4b38853250e4c9362e2f136 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 26 Jan 2021 17:08:56 +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 0f6d4ab3..351f333f 100644 --- a/Database/ActiveRecord.php +++ b/Database/ActiveRecord.php @@ -292,6 +292,9 @@ class ActiveRecord extends BaseActiveRecord return $data; } $resolve = $this->{$data}(); + if ($resolve instanceof HasBase) { + $resolve = $resolve->get(); + } if ($resolve instanceof Collection) { return $resolve->toArray(); }