mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-04 07:56:12 +00:00
51 lines
1.4 KiB
PHP
51 lines
1.4 KiB
PHP
<?php
|
|
|
|
namespace Chill\CalendarBundle\Repository;
|
|
|
|
use Chill\CalendarBundle\Entity\Invite;
|
|
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
|
use Doctrine\Persistence\ManagerRegistry;
|
|
|
|
/**
|
|
* @method Invite|null find($id, $lockMode = null, $lockVersion = null)
|
|
* @method Invite|null findOneBy(array $criteria, array $orderBy = null)
|
|
* @method Invite[] findAll()
|
|
* @method Invite[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
|
|
*/
|
|
class InviteRepository extends ServiceEntityRepository
|
|
{
|
|
public function __construct(ManagerRegistry $registry)
|
|
{
|
|
parent::__construct($registry, Invite::class);
|
|
}
|
|
|
|
// /**
|
|
// * @return Invite[] Returns an array of Invite objects
|
|
// */
|
|
/*
|
|
public function findByExampleField($value)
|
|
{
|
|
return $this->createQueryBuilder('i')
|
|
->andWhere('i.exampleField = :val')
|
|
->setParameter('val', $value)
|
|
->orderBy('i.id', 'ASC')
|
|
->setMaxResults(10)
|
|
->getQuery()
|
|
->getResult()
|
|
;
|
|
}
|
|
*/
|
|
|
|
/*
|
|
public function findOneBySomeField($value): ?Invite
|
|
{
|
|
return $this->createQueryBuilder('i')
|
|
->andWhere('i.exampleField = :val')
|
|
->setParameter('val', $value)
|
|
->getQuery()
|
|
->getOneOrNullResult()
|
|
;
|
|
}
|
|
*/
|
|
}
|