This commit is contained in:
2021-01-22 16:52:48 +08:00
parent 3d5f1e2355
commit be0161c480
2 changed files with 5 additions and 3 deletions
+3
View File
@@ -313,6 +313,9 @@ class ActiveRecord extends BaseActiveRecord
{
$data = $this->_attributes;
foreach ($this->getAnnotation() as $key => $item) {
if (!isset($data[$key])) {
continue;
}
$data[$key] = call_user_func($item, $data[$key]);
}
return array_merge($data, $this->runRelate());