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.

SectionRepository.php 1.5KB

3 年之前
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. namespace Lc\ShopBundle\Repository;
  3. use Lc\ShopBundle\Context\SectionInterface;
  4. use Lc\ShopBundle\Context\DefaultRepositoryInterface;
  5. /**
  6. * @method SectionInterface|null find($id, $lockMode = null, $lockVersion = null)
  7. * @method SectionInterface|null findOneBy(array $criteria, array $orderBy = null)
  8. * @method SectionInterface[] findAll()
  9. * @method SectionInterface[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
  10. */
  11. class SectionRepository extends BaseRepository implements DefaultRepositoryInterface
  12. {
  13. public function getInterfaceClass()
  14. {
  15. return SectionInterface::class;
  16. }
  17. // /**
  18. // * @return Address[] Returns an array of Address objects
  19. // */
  20. /*
  21. public function findByExampleField($value)
  22. {
  23. return $this->createQueryBuilder('a')
  24. ->andWhere('a.exampleField = :val')
  25. ->setParameter('val', $value)
  26. ->orderBy('a.id', 'ASC')
  27. ->setMaxResults(10)
  28. ->getQuery()
  29. ->getResult()
  30. ;
  31. }
  32. */
  33. /*
  34. public function findOneBySomeField($value): ?Address
  35. {
  36. return $this->createQueryBuilder('a')
  37. ->andWhere('a.exampleField = :val')
  38. ->setParameter('val', $value)
  39. ->getQuery()
  40. ->getOneOrNullResult()
  41. ;
  42. }
  43. */
  44. }