/** * Remove category * * @param Category $category */ public function removeCategory(Category $category) { $this->categories->removeElement($category); }