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;
    }