This commit is contained in:
2021-01-22 17:52:43 +08:00
parent be0161c480
commit 45fe53376d
+1 -1
View File
@@ -313,7 +313,7 @@ class ActiveRecord extends BaseActiveRecord
{ {
$data = $this->_attributes; $data = $this->_attributes;
foreach ($this->getAnnotation() as $key => $item) { foreach ($this->getAnnotation() as $key => $item) {
if (!isset($data[$key])) { if (!$this->hasAnnotation($key)) {
continue; continue;
} }
$data[$key] = call_user_func($item, $data[$key]); $data[$key] = call_user_func($item, $data[$key]);