<?php

namespace App\Repository;

use App\Entity\ServiceRdv;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;

/**
 * @extends ServiceEntityRepository<ServiceRdv>
 *
 * @method ServiceRdv|null find($id, $lockMode = null, $lockVersion = null)
 * @method ServiceRdv|null findOneBy(array $criteria, array $orderBy = null)
 * @method ServiceRdv[]    findAll()
 * @method ServiceRdv[]    findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
 */
class ServiceRdvRepository extends ServiceEntityRepository
{
    public function __construct(ManagerRegistry $registry)
    {
        parent::__construct($registry, ServiceRdv::class);
    }

//    /**
//     * @return ServiceRdv[] Returns an array of ServiceRdv objects
//     */
//    public function findByExampleField($value): array
//    {
//        return $this->createQueryBuilder('s')
//            ->andWhere('s.exampleField = :val')
//            ->setParameter('val', $value)
//            ->orderBy('s.id', 'ASC')
//            ->setMaxResults(10)
//            ->getQuery()
//            ->getResult()
//        ;
//    }

//    public function findOneBySomeField($value): ?ServiceRdv
//    {
//        return $this->createQueryBuilder('s')
//            ->andWhere('s.exampleField = :val')
//            ->setParameter('val', $value)
//            ->getQuery()
//            ->getOneOrNullResult()
//        ;
//    }
}
