mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
fix: strict equal check jsonb
This commit is contained in:
@@ -23,7 +23,7 @@ class EntityRepository extends ServiceEntityRepository
|
|||||||
public function findByjCard(array $vCardArray): array
|
public function findByjCard(array $vCardArray): array
|
||||||
{
|
{
|
||||||
return $this->getEntityManager()->getConnection()
|
return $this->getEntityManager()->getConnection()
|
||||||
->prepare('SELECT * FROM entity WHERE j_Card @> :data')
|
->prepare('SELECT * FROM entity WHERE j_Card @> :data AND j_Card <@ :data')
|
||||||
->executeQuery(['data' => json_encode($vCardArray)])
|
->executeQuery(['data' => json_encode($vCardArray)])
|
||||||
->fetchAllAssociative();
|
->fetchAllAssociative();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user