From a578c2eaac21df30fbd1ec03e2a50fda97bf5c8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 4 Mar 2021 15:24: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, 2 insertions(+), 1 deletion(-) diff --git a/Database/ActiveRecord.php b/Database/ActiveRecord.php index 796adb47..83bfc46c 100644 --- a/Database/ActiveRecord.php +++ b/Database/ActiveRecord.php @@ -297,7 +297,6 @@ class ActiveRecord extends BaseActiveRecord { $relates = []; if (empty($with = $this->getWith())) { - var_dump($with); return $relates; } foreach ($with as $val) { @@ -314,6 +313,7 @@ class ActiveRecord extends BaseActiveRecord public function setWith($data): static { $this->_with = $data; + var_dump(get_called_class(), $this->_with); return $this; } @@ -323,6 +323,7 @@ class ActiveRecord extends BaseActiveRecord */ public function getWith(): array|null { + var_dump(get_called_class(), $this->_with); return $this->_with; }