lib/Persistence/Doctrine/QueryHandler/CollectionQueryHandler.php
public function deleteCollectionTranslations($collectionId, ?int $status = null, ?string $locale = null): void
    {
        $query = $this->connection->createQueryBuilder();

        $query->delete('ngbm_collection_translation')
            ->where(
                $query->expr()->eq('collection_id', ':collection_id')
            )
            ->setParameter('collection_id', $collectionId, Type::INTEGER);

        if ($status !== null) {
            $this->applyStatusCondition($query, $status);
        }

        if ($locale !== null) {
            $query
                ->andWhere($query->expr()->eq('locale', ':locale'))
                ->setParameter(':locale', $locale, Type::STRING);
        }

        $query->execute();
    }
public function deleteCollectionTranslations($collectionId, ?int $status = null, ?string $locale = null): void
    {
        $query = $this->connection->createQueryBuilder();

        $query->delete('ngbm_collection_translation')
            ->where(
                $query->expr()->eq('collection_id', ':collection_id')
            )
            ->setParameter('collection_id', $collectionId, Type::INTEGER);

        if ($status !== null) {
            $this->applyStatusCondition($query, $status);
        }

        if ($locale !== null) {
            $query
                ->andWhere($query->expr()->eq('locale', ':locale'))
                ->setParameter(':locale', $locale, Type::STRING);
        }

        $query->execute();
    }
public function deleteCollectionTranslations ( $ collectionId , ? int $ status = null , ? string $ locale = null ) : void { $ query = $ this -> connection -> createQueryBuilder ( ) ; $ query -> delete ( 'ngbm_collection_translation' ) -> where ( $ query -> expr ( ) -> eq ( 'collection_id' , ':collection_id' ) ) -> setParameter ( 'collection_id' , $ collectionId , Type :: INTEGER ) ; if ( $ status !== null ) { $ this -> applyStatusCondition ( $ query , $ status ) ; } if ( $ locale !== null ) { $ query -> andWhere ( $ query -> expr ( ) -> eq ( 'locale' , ':locale' ) ) -> setParameter ( ':locale' , $ locale , Type :: STRING ) ; } $ query -> execute ( ) ; }
Deletes collection translations.

@param int|string $collectionId
@param int $status
@param string $locale
Deletes collection translations .