From 41166dd998ae2dd6b99c5dad5e4916e72973b22d Mon Sep 17 00:00:00 2001 From: xl Date: Wed, 6 Nov 2024 20:53:24 +0800 Subject: [PATCH] eee --- Relation.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Relation.php b/Relation.php index d8c08b1..c68d93e 100644 --- a/Relation.php +++ b/Relation.php @@ -4,6 +4,7 @@ declare(strict_types=1); namespace Database; +use Database\Base\ActiveQueryInterface; use Kiri\Abstracts\Component; use Kiri\Di\Context; @@ -34,7 +35,7 @@ class Relation extends Component */ public function hasIdentification(string $identification): bool { - return isset($this->_query[$identification]); + return isset($this->_query[$identification]) && $this->_query[$identification] instanceof ActiveQueryInterface; } /**