feat: improve ui

This commit is contained in:
Maël Gangloff
2024-12-20 19:41:48 +01:00
parent 1dc16d769b
commit 425071bc23
6 changed files with 124 additions and 55 deletions

View File

@@ -4,6 +4,7 @@ namespace App\Repository;
use App\Entity\Entity;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\DBAL\Exception;
use Doctrine\Persistence\ManagerRegistry;
/**
@@ -16,6 +17,17 @@ class EntityRepository extends ServiceEntityRepository
parent::__construct($registry, Entity::class);
}
/**
* @throws Exception
*/
public function findByjCard(array $vCardArray): array
{
return $this->getEntityManager()->getConnection()
->prepare('SELECT * FROM entity WHERE j_Card @> :data')
->executeQuery(['data' => json_encode($vCardArray)])
->fetchAllAssociative();
}
// /**
// * @return Entity[] Returns an array of Entity objects
// */