diff --git a/Database/Base/BaseActiveRecord.php b/Database/Base/BaseActiveRecord.php index 519ac0b6..24d1c94a 100644 --- a/Database/Base/BaseActiveRecord.php +++ b/Database/Base/BaseActiveRecord.php @@ -842,6 +842,8 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess */ public function __get($name): mixed { + if (Snowflake::app()->has($name)) return Snowflake::getApp($name); + $value = $this->_attributes[$name] ?? null; $method = $this->_get_annotation($name, static::GET); if (!empty($method)) {