public function removeAttachment($fileAttachment) { return $this->setAttachments(array_diff($this->getAttachments(), array($fileAttachment))); }