2024-07-11 02:29:08 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Repository;
|
|
|
|
|
|
2024-07-12 15:20:24 +02:00
|
|
|
use App\Entity\WatchList;
|
2024-07-11 02:29:08 +02:00
|
|
|
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
|
|
|
|
use Doctrine\Persistence\ManagerRegistry;
|
|
|
|
|
|
|
|
|
|
/**
|
2024-07-12 15:20:24 +02:00
|
|
|
* @extends ServiceEntityRepository<WatchList>
|
2024-07-11 02:29:08 +02:00
|
|
|
*/
|
2024-07-12 15:20:24 +02:00
|
|
|
class WatchListRepository extends ServiceEntityRepository
|
2024-07-11 02:29:08 +02:00
|
|
|
{
|
|
|
|
|
public function __construct(ManagerRegistry $registry)
|
|
|
|
|
{
|
2024-07-12 15:20:24 +02:00
|
|
|
parent::__construct($registry, WatchList::class);
|
2024-07-11 02:29:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// /**
|
2024-07-12 15:20:24 +02:00
|
|
|
// * @return WatchList[] Returns an array of WatchList objects
|
2024-07-11 02:29:08 +02:00
|
|
|
// */
|
|
|
|
|
// public function findByExampleField($value): array
|
|
|
|
|
// {
|
|
|
|
|
// return $this->createQueryBuilder('b')
|
|
|
|
|
// ->andWhere('b.exampleField = :val')
|
|
|
|
|
// ->setParameter('val', $value)
|
|
|
|
|
// ->orderBy('b.id', 'ASC')
|
|
|
|
|
// ->setMaxResults(10)
|
|
|
|
|
// ->getQuery()
|
|
|
|
|
// ->getResult()
|
|
|
|
|
// ;
|
|
|
|
|
// }
|
|
|
|
|
|
2024-07-12 15:20:24 +02:00
|
|
|
// public function findOneBySomeField($value): ?WatchList
|
2024-07-11 02:29:08 +02:00
|
|
|
// {
|
|
|
|
|
// return $this->createQueryBuilder('b')
|
|
|
|
|
// ->andWhere('b.exampleField = :val')
|
|
|
|
|
// ->setParameter('val', $value)
|
|
|
|
|
// ->getQuery()
|
|
|
|
|
// ->getOneOrNullResult()
|
|
|
|
|
// ;
|
|
|
|
|
// }
|
|
|
|
|
}
|