public function removeFavoriteBundle(Bundle $favoriteBundle) { $this->favoriteBundles->removeElement($favoriteBundle); }