src/Sulu/Component/Rest/ListBuilder/Expression/Doctrine/DoctrineBetweenExpression.php
public function getStatement(QueryBuilder $queryBuilder)
    {
        $paramName1 = $this->getFieldName() . $this->getUniqueId();
        $paramName2 = $this->getFieldName() . $this->getUniqueId();
        $queryBuilder->setParameter($paramName1, $this->getStart());
        $queryBuilder->setParameter($paramName2, $this->getEnd());

        return $this->field->getSelect() . ' BETWEEN :' . $paramName1 . ' AND :' . $paramName2;
    }
public function getStatement(QueryBuilder $queryBuilder)
    {
        $paramName1 = $this->getFieldName() . $this->getUniqueId();
        $paramName2 = $this->getFieldName() . $this->getUniqueId();
        $queryBuilder->setParameter($paramName1, $this->getStart());
        $queryBuilder->setParameter($paramName2, $this->getEnd());

        return $this->field->getSelect() . ' BETWEEN :' . $paramName1 . ' AND :' . $paramName2;
    }
public function getStatement ( QueryBuilder $ queryBuilder ) { $ paramName1 = $ this -> getFieldName ( ) . $ this -> getUniqueId ( ) ; $ paramName2 = $ this -> getFieldName ( ) . $ this -> getUniqueId ( ) ; $ queryBuilder -> setParameter ( $ paramName1 , $ this -> getStart ( ) ) ; $ queryBuilder -> setParameter ( $ paramName2 , $ this -> getEnd ( ) ) ; return $ this -> field -> getSelect ( ) . ' BETWEEN :' . $ paramName1 . ' AND :' . $ paramName2 ; }
Returns a statement for an expression.

@param QueryBuilder $queryBuilder

@return string
Returns a statement for an expression .