This commit is contained in:
2021-03-05 18:18:14 +08:00
parent 6849212c7f
commit 924dcbc27a
+4
View File
@@ -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());