Loading module/Oscar/src/Oscar/Entity/ActivityRepository.php +5 −4 Original line number Diff line number Diff line Loading @@ -1027,13 +1027,14 @@ class ActivityRepository extends EntityRepository if ($min !== null) { $qb->where('c.amount >= :min'); $parameters['min'] = $min; } if ($max !== null) { $qb->where('c.amount >= :max'); $qb->andWhere('c.amount <= :max'); $parameters['max'] = $max; } } else if ($max !== null) { $qb->where('c.amount <= :max'); $parameters['max'] = $max; } return array_map('current', $qb->getQuery()->setParameters($parameters)->getResult()); } Loading Loading
module/Oscar/src/Oscar/Entity/ActivityRepository.php +5 −4 Original line number Diff line number Diff line Loading @@ -1027,13 +1027,14 @@ class ActivityRepository extends EntityRepository if ($min !== null) { $qb->where('c.amount >= :min'); $parameters['min'] = $min; } if ($max !== null) { $qb->where('c.amount >= :max'); $qb->andWhere('c.amount <= :max'); $parameters['max'] = $max; } } else if ($max !== null) { $qb->where('c.amount <= :max'); $parameters['max'] = $max; } return array_map('current', $qb->getQuery()->setParameters($parameters)->getResult()); } Loading