protected function removeIds(array $recipeIds): void
    {
        // First delete the ingredients...
        $queryBuilder = $this->entityManager->createQueryBuilder();
        $queryBuilder->delete(RecipeIngredient::class, 'ri')
                     ->andWhere('ri.recipe IN (:recipeIds)')
                     ->setParameter('recipeIds', array_values($recipeIds));
        $queryBuilder->getQuery()->execute();

        // ... and the products.
        $queryBuilder = $this->entityManager->createQueryBuilder();
        $queryBuilder->delete(RecipeProduct::class, 'rp')
                     ->andWhere('rp.recipe IN (:recipeIds)')
                     ->setParameter('recipeIds', array_values($recipeIds));
        $queryBuilder->getQuery()->execute();

        // And finally the recipes itself.
        $queryBuilder = $this->entityManager->createQueryBuilder();
        $queryBuilder->delete(Recipe::class, 'r')
                     ->andWhere('r.id IN (:recipeIds)')
                     ->setParameter('recipeIds', array_values($recipeIds));

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