This commit is contained in:
2021-03-04 15:27:03 +08:00
parent 47e372c37e
commit b4a69ef163
2 changed files with 3 additions and 3 deletions
+3 -2
View File
@@ -296,15 +296,16 @@ class ActiveRecord extends BaseActiveRecord
private function runRelate(): array
{
$relates = [];
if (empty($with = $this->getWith())) {
if (empty($this->_with)) {
return $relates;
}
foreach ($with as $val) {
foreach ($this->_with as $val) {
$relates[$val] = $this->resolveObject($val);
}
return $relates;
}
private array $_with = [];
/**
* @param $data