lib/Persistence/Doctrine/QueryHandler/BlockQueryHandler.php
public function createBlockTranslation(Block $block, string $locale): void
    {
        $query = $this->connection->createQueryBuilder()
            ->insert('ngbm_block_translation')
            ->values(
                [
                    'block_id' => ':block_id',
                    'status' => ':status',
                    'locale' => ':locale',
                    'parameters' => ':parameters',
                ]
            )
            ->setParameter('block_id', $block->id, Type::INTEGER)
            ->setParameter('status', $block->status, Type::INTEGER)
            ->setParameter('locale', $locale, Type::STRING)
            ->setParameter('parameters', $block->parameters[$locale], Type::JSON_ARRAY);

        $query->execute();
    }
public function createBlockTranslation(Block $block, string $locale): void
    {
        $query = $this->connection->createQueryBuilder()
            ->insert('ngbm_block_translation')
            ->values(
                [
                    'block_id' => ':block_id',
                    'status' => ':status',
                    'locale' => ':locale',
                    'parameters' => ':parameters',
                ]
            )
            ->setParameter('block_id', $block->id, Type::INTEGER)
            ->setParameter('status', $block->status, Type::INTEGER)
            ->setParameter('locale', $locale, Type::STRING)
            ->setParameter('parameters', $block->parameters[$locale], Type::JSON_ARRAY);

        $query->execute();
    }
public function createBlockTranslation ( Block $ block , string $ locale ) : void { $ query = $ this -> connection -> createQueryBuilder ( ) -> insert ( 'ngbm_block_translation' ) -> values ( [ 'block_id' => ':block_id' , 'status' => ':status' , 'locale' => ':locale' , 'parameters' => ':parameters' , ] ) -> setParameter ( 'block_id' , $ block -> id , Type :: INTEGER ) -> setParameter ( 'status' , $ block -> status , Type :: INTEGER ) -> setParameter ( 'locale' , $ locale , Type :: STRING ) -> setParameter ( 'parameters' , $ block -> parameters [ $ locale ] , Type :: JSON_ARRAY ) ; $ query -> execute ( ) ; }
Creates a block translation.
Creates a block translation .