瀏覽代碼

Frontend : page ambassades

reduction
Guillaume 4 年之前
父節點
當前提交
2769cd8ce3
共有 1 個檔案被更改,包括 10 行新增0 行删除
  1. +10
    -0
      ShopBundle/Repository/PointSaleRepository.php

+ 10
- 0
ShopBundle/Repository/PointSaleRepository.php 查看文件

@@ -19,4 +19,14 @@ class PointSaleRepository extends BaseRepository implements DefaultRepositoryInt
return PointSaleInterface::class;
}

public function findAllPublics()
{
return $this->createQueryBuilder('e')
->where(':currentMerchant MEMBER OF e.merchants')
->andWhere('e.isPublic = 1')
->setParameter('currentMerchant', $this->globalParam->getCurrentMerchant())
->getQuery()
->getResult() ;
}

}

Loading…
取消
儲存