public function updateQuery(string $prependQuery = ' WHERE '): self
    {
        $whereCase = $this->getWhereClause($prependQuery);

        if ($whereCase !== '') {
            $this->query->setDQL($this->query->getDQL().$whereCase);
            $this->query->setHint(
                $this->conditionGenerator->getQueryHintName(),
                $this->getQueryHintValue()
            );
        }

        return $this;
    }
public function updateQuery(string $prependQuery = ' WHERE '): self
    {
        $whereCase = $this->getWhereClause($prependQuery);

        if ($whereCase !== '') {
            $this->query->setDQL($this->query->getDQL().$whereCase);
            $this->query->setHint(
                $this->conditionGenerator->getQueryHintName(),
                $this->getQueryHintValue()
            );
        }

        return $this;
    }
public function updateQuery ( string $ prependQuery = ' WHERE ' ) : self { $ whereCase = $ this -> getWhereClause ( $ prependQuery ) ; if ( $ whereCase !== '' ) { $ this -> query -> setDQL ( $ this -> query -> getDQL ( ) . $ whereCase ) ; $ this -> query -> setHint ( $ this -> conditionGenerator -> getQueryHintName ( ) , $ this -> getQueryHintValue ( ) ) ; } return $ this ; }
Updates the configured query object with the where-clause.

@param string $prependQuery Prepends this string to the where-clause
("WHERE" or "AND" for example)
Updates the configured query object with the where - clause .