lib/Persistence/Doctrine/QueryHandler/BlockQueryHandler.php
public function deleteCollectionReferences(array $blockIds, ?int $status = null): void
    {
        $query = $this->connection->createQueryBuilder();

        $query->delete('ngbm_block_collection')
            ->where(
                $query->expr()->in('block_id', [':block_id'])
            )
            ->setParameter('block_id', $blockIds, Connection::PARAM_INT_ARRAY);

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

        $query->execute();
    }
public function deleteCollectionReferences(array $blockIds, ?int $status = null): void
    {
        $query = $this->connection->createQueryBuilder();

        $query->delete('ngbm_block_collection')
            ->where(
                $query->expr()->in('block_id', [':block_id'])
            )
            ->setParameter('block_id', $blockIds, Connection::PARAM_INT_ARRAY);

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

        $query->execute();
    }
public function deleteCollectionReferences ( array $ blockIds , ? int $ status = null ) : void { $ query = $ this -> connection -> createQueryBuilder ( ) ; $ query -> delete ( 'ngbm_block_collection' ) -> where ( $ query -> expr ( ) -> in ( 'block_id' , [ ':block_id' ] ) ) -> setParameter ( 'block_id' , $ blockIds , Connection :: PARAM_INT_ARRAY ) ; if ( $ status !== null ) { $ this -> applyStatusCondition ( $ query , $ status , 'block_status' , 'block_status' ) ; } $ query -> execute ( ) ; }
Deletes the collection reference.
Deletes the collection reference .