Esempio n. 1
0
 /**
  * Remove avatar
  *
  * @param MediaInterface $avatar
  */
 public function removeAvatar(MediaInterface $avatar)
 {
     $this->avatar->removeElement($avatar);
 }
Esempio n. 2
0
 /**
  * Remove media
  *
  * @param \Application\Sonata\MediaBundle\Entity\Media $media
  */
 public function removeMedia(\Application\Sonata\MediaBundle\Entity\Media $media)
 {
     $this->media->removeElement($media);
 }