mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
44 lines
1.2 KiB
PHP
44 lines
1.2 KiB
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Repository;
|
||
|
|
|
||
|
|
use App\Entity\Entity;
|
||
|
|
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
||
|
|
use Doctrine\Persistence\ManagerRegistry;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @extends ServiceEntityRepository<Entity>
|
||
|
|
*/
|
||
|
|
class EntityRepository extends ServiceEntityRepository
|
||
|
|
{
|
||
|
|
public function __construct(ManagerRegistry $registry)
|
||
|
|
{
|
||
|
|
parent::__construct($registry, Entity::class);
|
||
|
|
}
|
||
|
|
|
||
|
|
// /**
|
||
|
|
// * @return Entity[] Returns an array of Entity objects
|
||
|
|
// */
|
||
|
|
// public function findByExampleField($value): array
|
||
|
|
// {
|
||
|
|
// return $this->createQueryBuilder('e')
|
||
|
|
// ->andWhere('e.exampleField = :val')
|
||
|
|
// ->setParameter('val', $value)
|
||
|
|
// ->orderBy('e.id', 'ASC')
|
||
|
|
// ->setMaxResults(10)
|
||
|
|
// ->getQuery()
|
||
|
|
// ->getResult()
|
||
|
|
// ;
|
||
|
|
// }
|
||
|
|
|
||
|
|
// public function findOneBySomeField($value): ?Entity
|
||
|
|
// {
|
||
|
|
// return $this->createQueryBuilder('e')
|
||
|
|
// ->andWhere('e.exampleField = :val')
|
||
|
|
// ->setParameter('val', $value)
|
||
|
|
// ->getQuery()
|
||
|
|
// ->getOneOrNullResult()
|
||
|
|
// ;
|
||
|
|
// }
|
||
|
|
}
|