getAttachments() публичный Метод

Getter for attachments.
public getAttachments ( ) : ArrayCollection
Результат Doctrine\Common\Collections\ArrayCollection
Пример #1
0
 public function removeAttachmentFormArticle(Article $article, Attachment $attachment)
 {
     $article->getAttachments()->removeElement($attachment);
     $this->em->flush();
 }