Переглянути джерело

test perf

feature/export_comptable
Fab 3 роки тому
джерело
коміт
750c816542
1 змінених файлів з 9 додано та 2 видалено
  1. +9
    -2
      ShopBundle/Repository/MerchantRepository.php

+ 9
- 2
ShopBundle/Repository/MerchantRepository.php Переглянути файл

@@ -2,7 +2,7 @@

namespace Lc\ShopBundle\Repository;

use Lc\ShopBundle\Context\DefaultRepositoryInterface;
use Doctrine\ORM\EntityRepository;
use Lc\ShopBundle\Context\MerchantInterface;

/**
@@ -11,8 +11,15 @@ use Lc\ShopBundle\Context\MerchantInterface;
* @method MerchantInterface[] findAll()
* @method MerchantInterface[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
*/
class MerchantRepository extends BaseRepository implements DefaultRepositoryInterface
class MerchantRepository extends EntityRepository
{
public function findAllWithConfigs()
{
$qb = $this->createQueryBuilder('hub');
$qb->innerJoin('hub.merchantConfigs', 'merchant_configs');
return $qb->getQuery()->getResult();
}

public function getInterfaceClass()
{
return MerchantInterface::class;

Завантаження…
Відмінити
Зберегти