|
- <?php
-
- namespace Lc\ShopBundle\Repository;
-
- use Doctrine\Common\Persistence\ManagerRegistry;
- use Doctrine\ORM\EntityManager;
- use Doctrine\ORM\QueryBuilder;
- use Lc\ShopBundle\Context\PointSaleInterface;
- use Lc\ShopBundle\Context\ProductCategoryInterface;
-
- /**
- * @method PointSaleInterface|null find($id, $lockMode = null, $lockVersion = null)
- * @method PointSaleInterface|null findOneBy(array $criteria, array $orderBy = null)
- * @method PointSaleInterface[] findAll()
- * @method PointSaleInterface[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
- */
- class PointSaleRepository extends BaseRepository
- {
- public function __construct(EntityManager $entityManager)
- {
-
- parent::__construct($entityManager, PointSaleInterface::class);
- }
-
-
-
- // /**
- // * @return ProductCategory[] Returns an array of ProductCategory objects
- // */
- /*
- public function findByExampleField($value)
- {
- return $this->createQueryBuilder('p')
- ->andWhere('p.exampleField = :val')
- ->setParameter('val', $value)
- ->orderBy('p.id', 'ASC')
- ->setMaxResults(10)
- ->getQuery()
- ->getResult()
- ;
- }
- */
-
- /*
- public function findOneBySomeField($value): ?ProductCategory
- {
- return $this->createQueryBuilder('p')
- ->andWhere('p.exampleField = :val')
- ->setParameter('val', $value)
- ->getQuery()
- ->getOneOrNullResult()
- ;
- }
- */
- }
|