Browse Source

Correctif erreur reduction deco

develop
Fab 3 years ago
parent
commit
49b5685a38
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      ShopBundle/Repository/ReductionCatalogRepository.php

+ 3
- 0
ShopBundle/Repository/ReductionCatalogRepository.php View File

$query->andWhere(':groupUser MEMBER OF e.groupUsers OR e.groupUsers is empty'); $query->andWhere(':groupUser MEMBER OF e.groupUsers OR e.groupUsers is empty');
$query->setParameter('user', $user); $query->setParameter('user', $user);
$query->setParameter('groupUser', $user->getGroupUsers()); $query->setParameter('groupUser', $user->getGroupUsers());
}else{
$query->andWhere('e.users is empty');
$query->andWhere('e.groupUsers is empty');
} }


$query->andWhere(':productFamily MEMBER OF e.productFamilies OR e.productFamilies is empty'); $query->andWhere(':productFamily MEMBER OF e.productFamilies OR e.productFamilies is empty');

Loading…
Cancel
Save