This commit is contained in:
2021-03-29 16:27:12 +08:00
parent c1d37ce826
commit 4442397aa9
10 changed files with 25 additions and 16 deletions
+3 -3
View File
@@ -136,10 +136,10 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
/**
* @throws Exception
* @throws NotFindClassException
* @throws ReflectionException
*/
#[Aspect(InjectProperty::class)]
public function init()
#[Aspect(InjectProperty::class)] public function init()
{
if (!Context::hasContext(Relation::class)) {
$relation = Snowflake::createObject(Relation::class);