This commit is contained in:
2021-03-04 15:23:37 +08:00
parent 8fd715d311
commit 6a527b6433
+3 -1
View File
@@ -297,14 +297,16 @@ class ActiveRecord extends BaseActiveRecord
{
$relates = [];
if (empty($with = $this->getWith())) {
var_dump($with);
return $relates;
}
foreach ($this->_with as $val) {
foreach ($with as $val) {
$relates[$val] = $this->resolveObject($val);
}
return $relates;
}
/**
* @param $data
* @return ActiveRecord