lib/Persistence/Doctrine/QueryHandler/BlockQueryHandler.php
public function updateBlockTranslation(Block $block, string $locale): void
    {
        $query = $this->connection->createQueryBuilder();
        $query
            ->update('ngbm_block_translation')
            ->set('parameters', ':parameters')
            ->where(
                $query->expr()->andX(
                    $query->expr()->eq('block_id', ':block_id'),
                    $query->expr()->eq('locale', ':locale')
                )
            )
            ->setParameter('block_id', $block->id, Type::INTEGER)
            ->setParameter('locale', $locale, Type::STRING)
            ->setParameter('parameters', $block->parameters[$locale], Type::JSON_ARRAY);

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

        $query->execute();
    }
public function updateBlockTranslation(Block $block, string $locale): void
    {
        $query = $this->connection->createQueryBuilder();
        $query
            ->update('ngbm_block_translation')
            ->set('parameters', ':parameters')
            ->where(
                $query->expr()->andX(
                    $query->expr()->eq('block_id', ':block_id'),
                    $query->expr()->eq('locale', ':locale')
                )
            )
            ->setParameter('block_id', $block->id, Type::INTEGER)
            ->setParameter('locale', $locale, Type::STRING)
            ->setParameter('parameters', $block->parameters[$locale], Type::JSON_ARRAY);

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

        $query->execute();
    }
public function updateBlockTranslation ( Block $ block , string $ locale ) : void { $ query = $ this -> connection -> createQueryBuilder ( ) ; $ query -> update ( 'ngbm_block_translation' ) -> set ( 'parameters' , ':parameters' ) -> where ( $ query -> expr ( ) -> andX ( $ query -> expr ( ) -> eq ( 'block_id' , ':block_id' ) , $ query -> expr ( ) -> eq ( 'locale' , ':locale' ) ) ) -> setParameter ( 'block_id' , $ block -> id , Type :: INTEGER ) -> setParameter ( 'locale' , $ locale , Type :: STRING ) -> setParameter ( 'parameters' , $ block -> parameters [ $ locale ] , Type :: JSON_ARRAY ) ; $ this -> applyStatusCondition ( $ query , $ block -> status ) ; $ query -> execute ( ) ; }
Updates a block translation.
Updates a block translation .