瀏覽代碼

OrderShopRepository : gestion Section

feature/module_traiteur_v1
Guillaume 3 年之前
父節點
當前提交
99a29f6097
共有 1 個檔案被更改,包括 4 行新增0 行删除
  1. +4
    -0
      ShopBundle/Repository/OrderShopRepository.php

+ 4
- 0
ShopBundle/Repository/OrderShopRepository.php 查看文件

@@ -128,6 +128,10 @@ class OrderShopRepository extends BaseRepository implements DefaultRepositoryInt
$query->select( $params['select']);
}

if (isset($params['section'])) {
$query = $query->andWhere('e.section = :section')->setParameter('section', $params['section']);
}

if (isset($params['dateStart']) || isset($params['dateEnd'])) {
$params['dateField'] = isset($params['dateField']) ? $params['dateField'] : 'validationDate';
}

Loading…
取消
儲存