This commit is contained in:
2021-03-29 16:28:31 +08:00
parent 4442397aa9
commit 5764846a78
+2
View File
@@ -138,6 +138,7 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
/** /**
* @throws NotFindClassException * @throws NotFindClassException
* @throws ReflectionException * @throws ReflectionException
* @throws Exception
*/ */
#[Aspect(InjectProperty::class)] public function init() #[Aspect(InjectProperty::class)] public function init()
{ {
@@ -147,6 +148,7 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
} else { } else {
$this->_relation = Context::getContext(Relation::class); $this->_relation = Context::getContext(Relation::class);
} }
$this->createAnnotation();
} }