feat: add dns_key table

This commit is contained in:
Maël Gangloff
2025-08-26 16:18:29 +02:00
parent e270a3d970
commit 5640e0d05e
7 changed files with 316 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
<?php
namespace App\Repository;
use App\Entity\DnsKey;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
/**
* @extends ServiceEntityRepository<DnsKey>
*/
class DnsKeyRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, DnsKey::class);
}
// /**
// * @return DnsKey[] Returns an array of DnsKey objects
// */
// public function findByExampleField($value): array
// {
// return $this->createQueryBuilder('d')
// ->andWhere('d.exampleField = :val')
// ->setParameter('val', $value)
// ->orderBy('d.id', 'ASC')
// ->setMaxResults(10)
// ->getQuery()
// ->getResult()
// ;
// }
// public function findOneBySomeField($value): ?DnsKey
// {
// return $this->createQueryBuilder('d')
// ->andWhere('d.exampleField = :val')
// ->setParameter('val', $value)
// ->getQuery()
// ->getOneOrNullResult()
// ;
// }
}