public function removeMedia(MediaInterface $media)
    {
        if ($this->medias->contains($media)) {
            $this->medias->removeElement($media);
        }
        return $this;
    }
public function removeMedia(MediaInterface $media)
    {
        if ($this->medias->contains($media)) {
            $this->medias->removeElement($media);
        }
        return $this;
    }
public function removeMedia ( MediaInterface $ media ) { if ( $ this -> medias -> contains ( $ media ) ) { $ this -> medias -> removeElement ( $ media ) ; } return $ this ; }
Removes the media.

@param MediaInterface $media
@return MediaUpload
Removes the media .