Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
37 | public function modify(QueryBuilder $queryBuilder, $dqlAlias) |
||
38 | { |
||
39 | $fromParam = $this->generateParameterName('from', $queryBuilder); |
||
40 | $toParam = $this->generateParameterName('to', $queryBuilder); |
||
41 | |||
42 | $queryBuilder->setParameter($fromParam, $this->from); |
||
43 | $queryBuilder->setParameter($toParam, $this->to); |
||
44 | |||
45 | return (string) $queryBuilder->expr()->between( |
||
46 | $this->createPropertyWithAlias($dqlAlias), |
||
47 | sprintf(':%s', $fromParam), |
||
48 | sprintf(':%s', $toParam) |
||
49 | ); |
||
50 | } |
||
51 | |||
63 |