protected function removeIds(array $craftingCategoryIds): void
    {
        $queryBuilder = $this->entityManager->createQueryBuilder();
        $queryBuilder->delete(CraftingCategory::class, 'cc')
                     ->andWhere('cc.id IN (:craftingCategoryIds)')
                     ->setParameter('craftingCategoryIds', array_values($craftingCategoryIds));

        $queryBuilder->getQuery()->execute();
    }