src/Entity/Tweet.php
public function addMedia(Media $media)
    {
        $this->medias->add($media);
        $media->addTweet($this);

        return $this;
    }
public function addMedia(Media $media)
    {
        $this->medias->add($media);
        $media->addTweet($this);

        return $this;
    }
public function addMedia ( Media $ media ) { $ this -> medias -> add ( $ media ) ; $ media -> addTweet ( $ this ) ; return $ this ; }
Add a media.

@param Media $media

@return Tweet
Add a media .