This commit is contained in:
2021-01-22 18:21:21 +08:00
parent 45fe53376d
commit cb3df20d16
+1
View File
@@ -316,6 +316,7 @@ class ActiveRecord extends BaseActiveRecord
if (!$this->hasAnnotation($key)) { if (!$this->hasAnnotation($key)) {
continue; continue;
} }
$item = [$this, $item[1]];
$data[$key] = call_user_func($item, $data[$key]); $data[$key] = call_user_func($item, $data[$key]);
} }
return array_merge($data, $this->runRelate()); return array_merge($data, $this->runRelate());