/** * {@inheritDoc} */ public function delete(CategoryInterface $category) { $this->em->remove($category); $this->em->flush(); }