lib/Persistence/Doctrine/QueryHandler/CollectionQueryHandler.php
public function createCollectionTranslation(Collection $collection, string $locale): void
    {
        $query = $this->connection->createQueryBuilder()
            ->insert('ngbm_collection_translation')
            ->values(
                [
                    'collection_id' => ':collection_id',
                    'status' => ':status',
                    'locale' => ':locale',
                ]
            )
            ->setParameter('collection_id', $collection->id, Type::INTEGER)
            ->setParameter('status', $collection->status, Type::INTEGER)
            ->setParameter('locale', $locale, Type::STRING);

        $query->execute();
    }
public function createCollectionTranslation(Collection $collection, string $locale): void
    {
        $query = $this->connection->createQueryBuilder()
            ->insert('ngbm_collection_translation')
            ->values(
                [
                    'collection_id' => ':collection_id',
                    'status' => ':status',
                    'locale' => ':locale',
                ]
            )
            ->setParameter('collection_id', $collection->id, Type::INTEGER)
            ->setParameter('status', $collection->status, Type::INTEGER)
            ->setParameter('locale', $locale, Type::STRING);

        $query->execute();
    }
public function createCollectionTranslation ( Collection $ collection , string $ locale ) : void { $ query = $ this -> connection -> createQueryBuilder ( ) -> insert ( 'ngbm_collection_translation' ) -> values ( [ 'collection_id' => ':collection_id' , 'status' => ':status' , 'locale' => ':locale' , ] ) -> setParameter ( 'collection_id' , $ collection -> id , Type :: INTEGER ) -> setParameter ( 'status' , $ collection -> status , Type :: INTEGER ) -> setParameter ( 'locale' , $ locale , Type :: STRING ) ; $ query -> execute ( ) ; }
Creates a collection translation.
Creates a collection translation .