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 = []; $relates = [];
if (empty($with = $this->getWith())) { if (empty($with = $this->getWith())) {
var_dump($with);
return $relates; return $relates;
} }
foreach ($this->_with as $val) { foreach ($with as $val) {
$relates[$val] = $this->resolveObject($val); $relates[$val] = $this->resolveObject($val);
} }
return $relates; return $relates;
} }
/** /**
* @param $data * @param $data
* @return ActiveRecord * @return ActiveRecord