This commit is contained in:
2021-03-29 17:09:11 +08:00
parent 5bd8998a6a
commit f700cc56a8
+3 -1
View File
@@ -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();