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