diff --git a/System/Abstracts/BaseObject.php b/System/Abstracts/BaseObject.php index f91e710f..6a5fd4eb 100644 --- a/System/Abstracts/BaseObject.php +++ b/System/Abstracts/BaseObject.php @@ -35,7 +35,9 @@ class BaseObject implements Configure if (!empty($config) && is_array($config)) { Snowflake::configure($this, $config); } - if (Snowflake::app() && Snowflake::app()->has('attributes')) { + + $app = Snowflake::app(); + if ($app != null && $app->has('attributes')) { annotation()->injectProperty($this); } $this->initialization();