This commit is contained in:
2021-01-22 19:16:58 +08:00
parent 42283ce525
commit f390ac3b94
+1 -3
View File
@@ -313,9 +313,7 @@ class ActiveRecord extends BaseActiveRecord
{
$data = $this->_attributes;
foreach ($this->getAnnotation() as $key => $item) {
if ($this->hasAnnotation($key)) {
$data[$key] = call_user_func([$this, $item[1]], $data[$key] ?? '');
}
$data[$key] = call_user_func([$this, $item[1]], $data[$key]);
}
return array_merge($data, $this->runRelate());
}