eee
This commit is contained in:
+2
-1
@@ -4,6 +4,7 @@ declare(strict_types=1);
|
|||||||
namespace Database;
|
namespace Database;
|
||||||
|
|
||||||
|
|
||||||
|
use Database\Base\ActiveQueryInterface;
|
||||||
use Kiri\Abstracts\Component;
|
use Kiri\Abstracts\Component;
|
||||||
use Kiri\Di\Context;
|
use Kiri\Di\Context;
|
||||||
|
|
||||||
@@ -34,7 +35,7 @@ class Relation extends Component
|
|||||||
*/
|
*/
|
||||||
public function hasIdentification(string $identification): bool
|
public function hasIdentification(string $identification): bool
|
||||||
{
|
{
|
||||||
return isset($this->_query[$identification]);
|
return isset($this->_query[$identification]) && $this->_query[$identification] instanceof ActiveQueryInterface;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user