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; } /**