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 lines
1.3KB

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