From 3b7dd9c7098e8812838410eb528113110c797ec5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Mon, 10 Apr 2023 18:56:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Relation.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Relation.php b/Relation.php index 96ac78d..773c378 100644 --- a/Relation.php +++ b/Relation.php @@ -62,6 +62,7 @@ class Relation extends Component if (empty($activeModel)) { return null; } + unset($this->_query[$_identification]); return Context::set($_identification, $activeModel); } @@ -79,6 +80,7 @@ class Relation extends Component if (empty($activeModel)) { return null; } + unset($this->_query[$_identification]); return Context::set($_identification, $activeModel); } @@ -96,6 +98,7 @@ class Relation extends Component if (empty($activeModel)) { return $activeModel; } + unset($this->_query[$_identification]); return Context::set($_identification, $activeModel); }