public function build()
    {
        $query = $this->qb;
        if ($this->getWhereExpression()) {
            $query->where($this->getWhereExpression());
        }
        foreach ($this->getWhereParameters() as $key => $param) {
            $query->setParameter($key, $param, is_array($param) ? Connection::PARAM_STR_ARRAY : null);
        }

        return $query;
    }
public function build()
    {
        $query = $this->qb;
        if ($this->getWhereExpression()) {
            $query->where($this->getWhereExpression());
        }
        foreach ($this->getWhereParameters() as $key => $param) {
            $query->setParameter($key, $param, is_array($param) ? Connection::PARAM_STR_ARRAY : null);
        }

        return $query;
    }
public function build ( ) { $ query = $ this -> qb ; if ( $ this -> getWhereExpression ( ) ) { $ query -> where ( $ this -> getWhereExpression ( ) ) ; } foreach ( $ this -> getWhereParameters ( ) as $ key => $ param ) { $ query -> setParameter ( $ key , $ param , is_array ( $ param ) ? Connection :: PARAM_STR_ARRAY : null ) ; } return $ query ; }
Part of the QueryInterface this turns all the input into a Doctrine
QueryBuilder object and is usually run just before query execution.
That allows modifications to be made to any of the parameters up until
query execution time.

@return QueryBuilder
Part of the QueryInterface this turns all the input into a Doctrine QueryBuilder object and is usually run just before query execution . That allows modifications to be made to any of the parameters up until query execution time .