This commit is contained in:
2021-04-27 15:02:34 +08:00
parent 445cfc8f89
commit fb01ab3aff
3 changed files with 54 additions and 80 deletions
+3 -3
View File
@@ -307,14 +307,14 @@ class ActiveRecord extends BaseActiveRecord
{
$data = $this->_attributes;
$lists = $this->getAnnotation(self::ANNOTATION_GET);
$lists = $this->getAnnotation(self::GET);
foreach ($lists as $key => $item) {
$data[$key] = $this->{$item}($data[$key] ?? null);
}
$data = array_merge($data, $this->runRelate());
$class = Snowflake::app()->getChannel();
$class->push($this, static::class);
// $class = Snowflake::app()->getChannel();
// $class->push($this, static::class);
return $data;
}