/
forest-lynx
/
project
Обзор
Документация
Войти
/
forest-lynx
/
project
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/Repository/ParticipationProjectRepository.php
43 строки
1 KB
forest-lynx
init
04 дек 2024, 10:44
04 дек 2024, 10:44
f4ceba2
Код
Авторство
О чём код?
<?php namespace App\Repository; use App\Entity\ParticipationProject; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @extends ServiceEntityRepository<ParticipationProject> */ class ParticipationProjectRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, ParticipationProject::class); } // /** // * @return ParticipationProject[] Returns an array of ParticipationProject objects // */ // public function findByExampleField($value): array // { // return $this->createQueryBuilder('p') // ->andWhere('p.exampleField = :val') // ->setParameter('val', $value) // ->orderBy('p.id', 'ASC') // ->setMaxResults(10) // ->getQuery() // ->getResult() // ; // } // public function findOneBySomeField($value): ?ParticipationProject // { // return $this->createQueryBuilder('p') // ->andWhere('p.exampleField = :val') // ->setParameter('val', $value) // ->getQuery() // ->getOneOrNullResult() // ; // } }