Browse Source

OrderShopRepository : gestion Section

feature/module_traiteur_v1
Guillaume 3 years ago
parent
commit
99a29f6097
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      ShopBundle/Repository/OrderShopRepository.php

+ 4
- 0
ShopBundle/Repository/OrderShopRepository.php View File

$query->select( $params['select']); $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'])) { if (isset($params['dateStart']) || isset($params['dateEnd'])) {
$params['dateField'] = isset($params['dateField']) ? $params['dateField'] : 'validationDate'; $params['dateField'] = isset($params['dateField']) ? $params['dateField'] : 'validationDate';
} }

Loading…
Cancel
Save