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