/** * Remove attachment * * @param \Proethos2\ModelBundle\Entity\SubmissionUpload $attachment */ public function removeAttachment(\Proethos2\ModelBundle\Entity\SubmissionUpload $attachment) { $this->attachments->removeElement($attachment); }