This commit is contained in:
xl
2024-11-06 20:53:24 +08:00
parent 3d4327a92e
commit 41166dd998
+2 -1
View File
@@ -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;
}
/**