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()
{
$this->_annotations = [];
if (!Context::hasContext(Relation::class)) {
$relation = Snowflake::createObject(Relation::class);
$this->_relation = Context::setContext(Relation::class, $relation);
@@ -145,9 +144,7 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
/**
* @throws ComponentException
* @throws NotFindClassException
* @throws ReflectionException
* @throws Exception
*/
private function createAnnotation()
{