diff --git a/Database/ActiveRecord.php b/Database/ActiveRecord.php index 1660a9cf..75329143 100644 --- a/Database/ActiveRecord.php +++ b/Database/ActiveRecord.php @@ -269,10 +269,7 @@ class ActiveRecord extends BaseActiveRecord { $data = $this->_attributes; foreach ($this->getAnnotation(self::ANNOTATION_GET) as $key => $item) { - if (!isset($data[$key])) { - continue; - } - $data[$key] = $this->runAnnotation($key, $data[$key]); + $data[$key] = $this->runAnnotation($key, $data[$key] ?? null); } $data = array_merge($data, $this->runRelate()); $this->recover();