2024-07-10 23:30:59 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Repository;
|
|
|
|
|
|
2024-07-11 17:01:16 +02:00
|
|
|
use App\Entity\DomainEvent;
|
2024-07-10 23:30:59 +02:00
|
|
|
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
|
|
|
|
use Doctrine\Persistence\ManagerRegistry;
|
|
|
|
|
|
|
|
|
|
/**
|
2024-07-11 17:01:16 +02:00
|
|
|
* @extends ServiceEntityRepository<DomainEvent>
|
2024-07-10 23:30:59 +02:00
|
|
|
*/
|
2024-07-11 17:01:16 +02:00
|
|
|
class DomainEventRepository extends ServiceEntityRepository
|
2024-07-10 23:30:59 +02:00
|
|
|
{
|
|
|
|
|
public function __construct(ManagerRegistry $registry)
|
|
|
|
|
{
|
2024-07-11 17:01:16 +02:00
|
|
|
parent::__construct($registry, DomainEvent::class);
|
2024-07-10 23:30:59 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// /**
|
2024-07-11 17:01:16 +02:00
|
|
|
// * @return DomainEvent[] Returns an array of DomainEvent objects
|
2024-07-10 23:30:59 +02:00
|
|
|
// */
|
|
|
|
|
// public function findByExampleField($value): array
|
|
|
|
|
// {
|
|
|
|
|
// return $this->createQueryBuilder('e')
|
|
|
|
|
// ->andWhere('e.exampleField = :val')
|
|
|
|
|
// ->setParameter('val', $value)
|
|
|
|
|
// ->orderBy('e.id', 'ASC')
|
|
|
|
|
// ->setMaxResults(10)
|
|
|
|
|
// ->getQuery()
|
|
|
|
|
// ->getResult()
|
|
|
|
|
// ;
|
|
|
|
|
// }
|
|
|
|
|
|
2024-07-11 17:01:16 +02:00
|
|
|
// public function findOneBySomeField($value): ?DomainEvent
|
2024-07-10 23:30:59 +02:00
|
|
|
// {
|
|
|
|
|
// return $this->createQueryBuilder('e')
|
|
|
|
|
// ->andWhere('e.exampleField = :val')
|
|
|
|
|
// ->setParameter('val', $value)
|
|
|
|
|
// ->getQuery()
|
|
|
|
|
// ->getOneOrNullResult()
|
|
|
|
|
// ;
|
|
|
|
|
// }
|
|
|
|
|
}
|