public function removeAttachment(Attachment $attachment) { $this->attachments->removeElement($attachment); }
/** * Remove attachments * * @param \Attachment $attachments */ public function removeAttachment(\Attachment $attachments) { /** @noinspection PhpUndefinedMethodInspection */ $this->attachments->removeElement($attachments); }