SettingsRepository.php 1.4 KB

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