選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

28 行
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. }