This commit is contained in:
2021-03-04 15:22:18 +08:00
parent e0993f4f64
commit d665aa4c4a
2 changed files with 9 additions and 1 deletions
-1
View File
@@ -235,7 +235,6 @@ class ActiveQuery extends Component implements ISqlBuilder
if (empty($this->with) || !is_array($this->with)) { if (empty($this->with) || !is_array($this->with)) {
return $model; return $model;
} }
var_dump($this->with);
return $model->setWith($this->with); return $model->setWith($this->with);
} }
+9
View File
@@ -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 $name
* @param $method * @param $method