Your IP : 216.73.217.79


Current Path : /var/www/v3.cesa.co.za/src/EventBundle/Repository/
Upload File :
Current File : /var/www/v3.cesa.co.za/src/EventBundle/Repository/TrainingProviderRepository.php

<?php

namespace App\EventBundle\Repository;

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

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

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

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