This commit is contained in:
2021-03-05 18:08:47 +08:00
parent 9718649ddd
commit 8d9e3756c7
+1 -4
View File
@@ -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();