/** * @param Email $email * * @return EmailThread */ public function removeEmail(Email $email) { if ($this->emails->contains($email)) { $this->emails->removeElement($email); } return $this; }
/** * Delete Email from User * * @param Email $email * * @return User */ public function removeEmail(Email $email) { $this->emails->removeElement($email); return $this; }