mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
feat: improve ui
This commit is contained in:
@@ -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
|
||||
// */
|
||||
|
||||
Reference in New Issue
Block a user