src/Entity/Tweet.php
public function removeMedia(Media $media)
    {
        $this->medias->removeElement($media);
        $media->removeTweet($this);

        return $this;
    }
public function removeMedia(Media $media)
    {
        $this->medias->removeElement($media);
        $media->removeTweet($this);

        return $this;
    }
public function removeMedia ( Media $ media ) { $ this -> medias -> removeElement ( $ media ) ; $ media -> removeTweet ( $ this ) ; return $ this ; }
Remove a media.

@param Media $media

@return Tweet
Remove a media .