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/MarketingEventRepository.php

<?php

namespace App\EventBundle\Repository;

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

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

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

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