<?php

namespace App\Repository;

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

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

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

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