getAttachments() public method

Getter for attachments.
public getAttachments ( ) : ArrayCollection
return Doctrine\Common\Collections\ArrayCollection
 public function removeAttachmentFormArticle(Article $article, Attachment $attachment)
 {
     $article->getAttachments()->removeElement($attachment);
     $this->em->flush();
 }