/** * Remove fundraiser * * @param \AppBundle\Entity\Fundraiser $fundraiser */ public function removeFundraiser(\AppBundle\Entity\Fundraiser $fundraiser) { if ($this->fundraisers->contains($fundraiser)) { $this->fundraisers->removeElement($fundraiser); $fundraiser->removeProvider($this); } }