From d665aa4c4acefd7baea1f4080d0a6baf7bcd6d5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 4 Mar 2021 15:22:18 +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/ActiveQuery.php | 1 - Database/Base/BaseActiveRecord.php | 9 +++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Database/ActiveQuery.php b/Database/ActiveQuery.php index 28de1095..0bd23187 100644 --- a/Database/ActiveQuery.php +++ b/Database/ActiveQuery.php @@ -235,7 +235,6 @@ class ActiveQuery extends Component implements ISqlBuilder if (empty($this->with) || !is_array($this->with)) { return $model; } - var_dump($this->with); return $model->setWith($this->with); } diff --git a/Database/Base/BaseActiveRecord.php b/Database/Base/BaseActiveRecord.php index 5eb9f5a8..c22da743 100644 --- a/Database/Base/BaseActiveRecord.php +++ b/Database/Base/BaseActiveRecord.php @@ -158,6 +158,15 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess } + /** + * @return array|null + */ + public function getWith(): array|null + { + return $this->_with; + } + + /** * @param $name * @param $method