public function updateQueryTranslation(Query $query, string $locale): void
    {
        $dbQuery = $this->connection->createQueryBuilder();

        $dbQuery
            ->update('ngbm_collection_query_translation')
            ->set('parameters', ':parameters')
            ->where(
                $dbQuery->expr()->andX(
                    $dbQuery->expr()->eq('query_id', ':query_id'),
                    $dbQuery->expr()->eq('locale', ':locale')
                )
            )
            ->setParameter('query_id', $query->id, Type::INTEGER)
            ->setParameter('locale', $locale, Type::STRING)
            ->setParameter('parameters', $query->parameters[$locale], Type::JSON_ARRAY);

        $this->applyStatusCondition($dbQuery, $query->status);

        $dbQuery->execute();
    }