lib/Persistence/Doctrine/QueryHandler/CollectionQueryHandler.php
public function createQueryTranslation(Query $query, string $locale): void
    {
        $dbQuery = $this->connection->createQueryBuilder()
            ->insert('ngbm_collection_query_translation')
            ->values(
                [
                    'query_id' => ':query_id',
                    'status' => ':status',
                    'locale' => ':locale',
                    'parameters' => ':parameters',
                ]
            )
            ->setParameter('query_id', $query->id, Type::INTEGER)
            ->setParameter('status', $query->status, Type::INTEGER)
            ->setParameter('locale', $locale, Type::STRING)
            ->setParameter('parameters', $query->parameters[$locale], Type::JSON_ARRAY);

        $dbQuery->execute();
    }
public function createQueryTranslation(Query $query, string $locale): void
    {
        $dbQuery = $this->connection->createQueryBuilder()
            ->insert('ngbm_collection_query_translation')
            ->values(
                [
                    'query_id' => ':query_id',
                    'status' => ':status',
                    'locale' => ':locale',
                    'parameters' => ':parameters',
                ]
            )
            ->setParameter('query_id', $query->id, Type::INTEGER)
            ->setParameter('status', $query->status, Type::INTEGER)
            ->setParameter('locale', $locale, Type::STRING)
            ->setParameter('parameters', $query->parameters[$locale], Type::JSON_ARRAY);

        $dbQuery->execute();
    }
public function createQueryTranslation ( Query $ query , string $ locale ) : void { $ dbQuery = $ this -> connection -> createQueryBuilder ( ) -> insert ( 'ngbm_collection_query_translation' ) -> values ( [ 'query_id' => ':query_id' , 'status' => ':status' , 'locale' => ':locale' , 'parameters' => ':parameters' , ] ) -> setParameter ( 'query_id' , $ query -> id , Type :: INTEGER ) -> setParameter ( 'status' , $ query -> status , Type :: INTEGER ) -> setParameter ( 'locale' , $ locale , Type :: STRING ) -> setParameter ( 'parameters' , $ query -> parameters [ $ locale ] , Type :: JSON_ARRAY ) ; $ dbQuery -> execute ( ) ; }
Creates a query translation.
Creates a query translation .