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