feat: update database relation

This commit is contained in:
Maël Gangloff
2024-07-11 22:20:20 +02:00
parent bad27c7b42
commit 6aad09297f
11 changed files with 146 additions and 83 deletions

View File

@@ -0,0 +1,43 @@
<?php
namespace App\Repository;
use App\Entity\BookmarkList;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
/**
* @extends ServiceEntityRepository<BookmarkList>
*/
class BookmarkListRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, BookmarkList::class);
}
// /**
// * @return BookmarkList[] Returns an array of BookmarkList objects
// */
// public function findByExampleField($value): array
// {
// return $this->createQueryBuilder('b')
// ->andWhere('b.exampleField = :val')
// ->setParameter('val', $value)
// ->orderBy('b.id', 'ASC')
// ->setMaxResults(10)
// ->getQuery()
// ->getResult()
// ;
// }
// public function findOneBySomeField($value): ?BookmarkList
// {
// return $this->createQueryBuilder('b')
// ->andWhere('b.exampleField = :val')
// ->setParameter('val', $value)
// ->getQuery()
// ->getOneOrNullResult()
// ;
// }
}