44 lines
1.1 KiB
PHP
44 lines
1.1 KiB
PHP
|
<?php
|
||
|
|
||
|
namespace App\Repository;
|
||
|
|
||
|
use App\Entity\UserCase;
|
||
|
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
||
|
use Doctrine\Persistence\ManagerRegistry;
|
||
|
|
||
|
/**
|
||
|
* @extends ServiceEntityRepository<UserCase>
|
||
|
*/
|
||
|
class UserCaseRepository extends ServiceEntityRepository
|
||
|
{
|
||
|
public function __construct(ManagerRegistry $registry)
|
||
|
{
|
||
|
parent::__construct($registry, UserCase::class);
|
||
|
}
|
||
|
|
||
|
// /**
|
||
|
// * @return UserCase[] Returns an array of UserCase objects
|
||
|
// */
|
||
|
// public function findByExampleField($value): array
|
||
|
// {
|
||
|
// return $this->createQueryBuilder('u')
|
||
|
// ->andWhere('u.exampleField = :val')
|
||
|
// ->setParameter('val', $value)
|
||
|
// ->orderBy('u.id', 'ASC')
|
||
|
// ->setMaxResults(10)
|
||
|
// ->getQuery()
|
||
|
// ->getResult()
|
||
|
// ;
|
||
|
// }
|
||
|
|
||
|
// public function findOneBySomeField($value): ?UserCase
|
||
|
// {
|
||
|
// return $this->createQueryBuilder('u')
|
||
|
// ->andWhere('u.exampleField = :val')
|
||
|
// ->setParameter('val', $value)
|
||
|
// ->getQuery()
|
||
|
// ->getOneOrNullResult()
|
||
|
// ;
|
||
|
// }
|
||
|
}
|