改名
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user