This commit is contained in:
2021-03-04 15:20:41 +08:00
parent 2de7962ecc
commit e0993f4f64
2 changed files with 1 additions and 5 deletions
+1
View File
@@ -235,6 +235,7 @@ 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);
} }
-5
View File
@@ -296,15 +296,10 @@ class ActiveRecord extends BaseActiveRecord
private function runRelate(): array private function runRelate(): array
{ {
$relates = []; $relates = [];
var_dump($this->_with);
if (empty($this->_with)) { if (empty($this->_with)) {
return $relates; return $relates;
} }
foreach ($this->_with as $val) { foreach ($this->_with as $val) {
var_dump($val);
$relates[$val] = $this->resolveObject($val); $relates[$val] = $this->resolveObject($val);
} }
return $relates; return $relates;