Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

28 rindas
873B

  1. <?php
  2. namespace Lc\ShopBundle\Repository;
  3. use Doctrine\ORM\EntityRepository;
  4. use Lc\ShopBundle\Context\MerchantInterface;
  5. /**
  6. * @method MerchantInterface|null find($id, $lockMode = null, $lockVersion = null)
  7. * @method MerchantInterface|null findOneBy(array $criteria, array $orderBy = null)
  8. * @method MerchantInterface[] findAll()
  9. * @method MerchantInterface[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
  10. */
  11. class MerchantRepository extends EntityRepository
  12. {
  13. public function findAllWithConfigs()
  14. {
  15. $qb = $this->createQueryBuilder('hub');
  16. $qb->innerJoin('hub.merchantConfigs', 'merchant_configs');
  17. return $qb->getQuery()->getResult();
  18. }
  19. public function getInterfaceClass()
  20. {
  21. return MerchantInterface::class;
  22. }
  23. }