public function removeCategory(CategoryInterface $category) { $this->categories->removeElement($category); }