From b7a05945db71cd6be4c686cc60256dd816b6c990 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 22 Feb 2021 17:51:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Database/Base/BaseActiveRecord.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Database/Base/BaseActiveRecord.php b/Database/Base/BaseActiveRecord.php index 4358d53a..d7a0a3e9 100644 --- a/Database/Base/BaseActiveRecord.php +++ b/Database/Base/BaseActiveRecord.php @@ -77,6 +77,16 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess protected ?Relation $_relation; + /** + * @param SEvent $event + * 默认注入 + */ + public function setEvent(SEvent $event) + { + $this->event = $event; + } + + /** * object init */