Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
web
/
vhosts
/
www.humitest.fr
/
htdocs
/
src
/
Repository
/
/srv/data/web/vhosts/www.humitest.fr/htdocs/src/Repository/PageRepository.php
<?php namespace App\Repository; use App\Entity\Page; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Symfony\Bridge\Doctrine\RegistryInterface; /** * @method Page|null find($id, $lockMode = null, $lockVersion = null) * @method Page|null findOneBy(array $criteria, array $orderBy = null) * @method Page[] findAll() * @method Page[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class PageRepository extends ServiceEntityRepository { public function __construct(RegistryInterface $registry) { parent::__construct($registry, Page::class); } public function findAllWithoutEstablisment() { return $this->createQueryBuilder('p') ->leftjoin('p.establishment', 'e') ->where('e IS NULL') ->orderBy('p.id', 'ASC') ->getQuery() ->getResult() ; } // /** // * @return Page[] Returns an array of Page objects // */ /* public function findByExampleField($value) { return $this->createQueryBuilder('p') ->andWhere('p.exampleField = :val') ->setParameter('val', $value) ->orderBy('p.id', 'ASC') ->setMaxResults(10) ->getQuery() ->getResult() ; } */ /* public function findOneBySomeField($value): ?Page { return $this->createQueryBuilder('p') ->andWhere('p.exampleField = :val') ->setParameter('val', $value) ->getQuery() ->getOneOrNullResult() ; } */ }