domain-watchdog/src/Repository/BookmarkListRepository.php

44 lines
1.2 KiB
PHP
Raw Normal View History

2024-07-11 02:29:08 +02:00
<?php
namespace App\Repository;
2024-07-11 22:20:20 +02:00
use App\Entity\BookmarkList;
2024-07-11 02:29:08 +02:00
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
/**
2024-07-11 22:20:20 +02:00
* @extends ServiceEntityRepository<BookmarkList>
2024-07-11 02:29:08 +02:00
*/
2024-07-11 22:20:20 +02:00
class BookmarkListRepository extends ServiceEntityRepository
2024-07-11 02:29:08 +02:00
{
public function __construct(ManagerRegistry $registry)
{
2024-07-11 22:20:20 +02:00
parent::__construct($registry, BookmarkList::class);
2024-07-11 02:29:08 +02:00
}
// /**
2024-07-11 22:20:20 +02:00
// * @return BookmarkList[] Returns an array of BookmarkList 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-11 22:20:20 +02:00
// public function findOneBySomeField($value): ?BookmarkList
2024-07-11 02:29:08 +02:00
// {
// return $this->createQueryBuilder('b')
// ->andWhere('b.exampleField = :val')
// ->setParameter('val', $value)
// ->getQuery()
// ->getOneOrNullResult()
// ;
// }
}