This commit is contained in:
2021-03-16 10:37:02 +08:00
parent f5391fa569
commit 8aee7440d0
+1 -4
View File
@@ -133,7 +133,6 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
*/ */
public function init() public function init()
{ {
$this->_annotations = [];
if (!Context::hasContext(Relation::class)) { if (!Context::hasContext(Relation::class)) {
$relation = Snowflake::createObject(Relation::class); $relation = Snowflake::createObject(Relation::class);
$this->_relation = Context::setContext(Relation::class, $relation); $this->_relation = Context::setContext(Relation::class, $relation);
@@ -145,9 +144,7 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
/** /**
* @throws ComponentException * @throws Exception
* @throws NotFindClassException
* @throws ReflectionException
*/ */
private function createAnnotation() private function createAnnotation()
{ {