From 1e55d3f5334c63cf26af8503c67e11858822b042 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Gangloff?= Date: Fri, 20 Dec 2024 21:29:29 +0100 Subject: [PATCH] fix: strict equal check jsonb --- src/Repository/EntityRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Repository/EntityRepository.php b/src/Repository/EntityRepository.php index 5458b84..b4b419b 100644 --- a/src/Repository/EntityRepository.php +++ b/src/Repository/EntityRepository.php @@ -23,7 +23,7 @@ class EntityRepository extends ServiceEntityRepository public function findByjCard(array $vCardArray): array { 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)]) ->fetchAllAssociative(); }