From 6a527b6433ed5f47e90eb5a8b2aec4a46860f18a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 4 Mar 2021 15:23:37 +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, 3 insertions(+), 1 deletion(-) diff --git a/Database/ActiveRecord.php b/Database/ActiveRecord.php index 76f8fbfe..796adb47 100644 --- a/Database/ActiveRecord.php +++ b/Database/ActiveRecord.php @@ -297,14 +297,16 @@ class ActiveRecord extends BaseActiveRecord { $relates = []; if (empty($with = $this->getWith())) { + var_dump($with); return $relates; } - foreach ($this->_with as $val) { + foreach ($with as $val) { $relates[$val] = $this->resolveObject($val); } return $relates; } + /** * @param $data * @return ActiveRecord