Loading module/Oscar/src/Oscar/Entity/ActivityRepository.php +6 −5 Original line number Diff line number Diff line Loading @@ -1026,13 +1026,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 +6 −5 Original line number Diff line number Diff line Loading @@ -1026,13 +1026,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