alexislefebvre/AsyncTweetsBundle

View on GitHub
src/Resources/config/doctrine/Tweet.orm.yml

Summary

Maintainability
Test Coverage
# generated by the following command:
# php app/console generate:doctrine:entity \
#  --entity=AsyncTweetsBundle:Tweet \
#  --fields="media_url:string(255) url:string(255) \
#  display_url:string(255) expanded_url:string(255)" \
#  --format=yml

AlexisLefebvre\Bundle\AsyncTweetsBundle\Entity\Tweet:
    type: entity
    table: 'asynctweets_tweet'
    repositoryClass: AlexisLefebvre\Bundle\AsyncTweetsBundle\Entity\TweetRepository
    id:
        id:
            type: bigint
            id: true
    fields:
        created_at:
            type: datetime
            length: null
        text:
            type: string
            length: '280'
        retweet_count:
            type: integer
            length: null
        favorite_count:
            type: integer
            length: null
        in_timeline:
            type: boolean
            default: false
    oneToMany:
        retweeting_statuses:
            targetEntity: Tweet
            mappedBy: retweeted_status
    manyToOne:
        user:
            targetEntity: User
            inversedBy: tweets
        retweeted_status:
            targetEntity: Tweet
            inversedBy: retweeting_statuses
    manyToMany:
        medias:
            targetEntity: Media
            inversedBy: tweets
            joinTable:
                name: asynctweets_tweet_media
                joinColumns:
                    joinColumn:
                        name: tweet_id
                        referencedColumnName: id
                inverseJoinColumns:
                    joinColumn:
                        name: media_id
                        referencedColumnName: id
            cascade: ["all"]
    lifecycleCallbacks: {  }