src/Repository/OffreEmploiProfilRepository.php line 32

Open in your IDE?
  1. <?php
  2. namespace App\Repository;
  3. use App\Entity\OffreEmploiProfil;
  4. use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
  5. use Doctrine\Persistence\ManagerRegistry;
  6. /**
  7.  * @method OffreEmploiProfil|null find($id, $lockMode = null, $lockVersion = null)
  8.  * @method OffreEmploiProfil|null findOneBy(array $criteria, array $orderBy = null)
  9.  * @method OffreEmploiProfil[]    findAll()
  10.  * @method OffreEmploiProfil[]    findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
  11.  */
  12. class OffreEmploiProfilRepository extends ServiceEntityRepository
  13. {
  14.     public function __construct(ManagerRegistry $registry)
  15.     {
  16.         parent::__construct($registryOffreEmploiProfil::class);
  17.     }
  18.     /**
  19.      * @return OffreEmploiProfil[] Returns an array of OffreEmploiProfil objects
  20.      */
  21.     public function findAllHavingJobs()
  22.     {
  23.         return $this->createQueryBuilder('o')
  24.             ->join('o.offreEmplois''oe')
  25.             // ->orderBy('o.libelle', 'ASC')
  26.             ->groupBy('o.id')
  27.             ->getQuery()
  28.             ->getResult()
  29.         ;
  30.     }
  31.     /*
  32.     public function findOneBySomeField($value): ?OffreEmploiProfil
  33.     {
  34.         return $this->createQueryBuilder('o')
  35.             ->andWhere('o.exampleField = :val')
  36.             ->setParameter('val', $value)
  37.             ->getQuery()
  38.             ->getOneOrNullResult()
  39.         ;
  40.     }
  41.     */
  42. }