You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 line
1.4KB

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