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.

PointSaleRepository.php 1.6KB

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