src/Repository/ItemRepository.php
protected function removeIds(array $itemIds): void
    {
        $queryBuilder = $this->entityManager->createQueryBuilder();
        $queryBuilder->delete(Item::class, 'i')
                     ->andWhere('i.id IN (:itemIds)')
                     ->setParameter('itemIds', array_values($itemIds));

        $queryBuilder->getQuery()->execute();
    }
protected function removeIds(array $itemIds): void
    {
        $queryBuilder = $this->entityManager->createQueryBuilder();
        $queryBuilder->delete(Item::class, 'i')
                     ->andWhere('i.id IN (:itemIds)')
                     ->setParameter('itemIds', array_values($itemIds));

        $queryBuilder->getQuery()->execute();
    }
protected function removeIds ( array $ itemIds ) : void { $ queryBuilder = $ this -> entityManager -> createQueryBuilder ( ) ; $ queryBuilder -> delete ( Item :: class , 'i' ) -> andWhere ( 'i.id IN (:itemIds)' ) -> setParameter ( 'itemIds' , array_values ( $ itemIds ) ) ; $ queryBuilder -> getQuery ( ) -> execute ( ) ; }
Removes the items with the specified ids from the database.
@param array|int[] $itemIds
Removes the items with the specified ids from the database .