/** * Remove owner * * @param \Application\MainBundle\Entity\Owner $owner */ public function removeOwner(\Application\MainBundle\Entity\Owner $owner) { $owner->removeElement($this); $this->owners->removeElement($owner); }