--- /dev/null
+Rapsys\BlogBundle\Entity\Article:
+ type: entity
+ repositoryClass: Rapsys\BlogBundle\Repository\ArticleRepository
+ table: articles
+ id:
+ id:
+ type: integer
+ generator:
+ strategy: AUTO
+ options:
+ unsigned: true
+ fields:
+ created:
+ type: datetime
+ updated:
+ type: datetime
+ manyToOne:
+ site:
+ targetEntity: Rapsys\BlogBundle\Entity\Site
+ inversedBy: articles
+ author:
+ targetEntity: Rapsys\BlogBundle\Entity\Author
+ inversedBy: articles
+ manyToMany:
+ keywords:
+ targetEntity: Rapsys\BlogBundle\Entity\Keyword
+ inversedBy: articles
+ joinTable:
+ name: articles_keywords
+ oneToMany:
+ article_translations:
+ targetEntity: Rapsys\BlogBundle\Entity\ArticleTranslation
+ mappedBy: article
--- /dev/null
+Rapsys\BlogBundle\Entity\ArticleKeyword:
+ type: entity
+ table: articles_keywords
+ id:
+ article_id:
+ type: integer
+ options:
+ unsigned: true
+ keyword_id:
+ type: integer
+ options:
+ unsigned: true
--- /dev/null
+Rapsys\BlogBundle\Entity\ArticleTranslation:
+ type: entity
+ repositoryClass: Rapsys\BlogBundle\Repository\ArticleTranslationRepository
+ table: articles_translations
+ id:
+ article_id:
+ type: integer
+ options:
+ unsigned: true
+ language_id:
+ type: smallint
+ options:
+ unsigned: true
+ fields:
+ slug:
+ type: string
+ length: 128
+ title:
+ type: string
+ length: 128
+ description:
+ type: text
+ body:
+ type: text
+ created:
+ type: datetime
+ updated:
+ type: datetime
+ manyToOne:
+ article:
+ targetEntity: Rapsys\BlogBundle\Entity\Article
+ inversedBy: article_translations
+ language:
+ targetEntity: Rapsys\BlogBundle\Entity\Language
+ inversedBy: article_translations
+ uniqueConstraints:
+ slug_language:
+ columns: [ slug, language_id ]
--- /dev/null
+Rapsys\BlogBundle\Entity\Author:
+ type: entity
+ repositoryClass: Rapsys\BlogBundle\Repository\AuthorRepository
+ table: authors
+ indexes:
+ name:
+ columns: [ name ]
+ id:
+ id:
+ type: smallint
+ generator:
+ strategy: AUTO
+ options:
+ unsigned: true
+ fields:
+ name:
+ type: string
+ length: 64
+ slug:
+ type: string
+ length: 64
+ unique: true
+ created:
+ type: datetime
+ updated:
+ type: datetime
+ oneToMany:
+ articles:
+ targetEntity: Rapsys\BlogBundle\Entity\Article
+ mappedBy: author
+ author_translations:
+ targetEntity: Rapsys\BlogBundle\Entity\AuthorTranslation
+ mappedBy: author
--- /dev/null
+Rapsys\BlogBundle\Entity\AuthorTranslation:
+ type: entity
+ repositoryClass: Rapsys\BlogBundle\Repository\AuthorTranslationRepository
+ table: authors_translations
+ id:
+ author_id:
+ type: smallint
+ options:
+ unsigned: true
+ language_id:
+ type: smallint
+ options:
+ unsigned: true
+ fields:
+ description:
+ type: text
+ created:
+ type: datetime
+ updated:
+ type: datetime
+ manyToOne:
+ author:
+ targetEntity: Rapsys\BlogBundle\Entity\Author
+ inversedBy: author_translations
+ language:
+ targetEntity: Rapsys\BlogBundle\Entity\Language
+ inversedBy: language_translations
--- /dev/null
+Rapsys\BlogBundle\Entity\Keyword:
+ type: entity
+ repositoryClass: Rapsys\BlogBundle\Repository\KeywordRepository
+ table: keywords
+ id:
+ id:
+ type: integer
+ generator:
+ strategy: AUTO
+ options:
+ unsigned: true
+ fields:
+ created:
+ type: datetime
+ updated:
+ type: datetime
+ manyToMany:
+ articles:
+ targetEntity: Rapsys\BlogBundle\Entity\Article
+ mappedBy: keywords
+ oneToMany:
+ keyword_translations:
+ targetEntity: Rapsys\BlogBundle\Entity\KeywordTranslation
+ mappedBy: keyword
--- /dev/null
+Rapsys\BlogBundle\Entity\KeywordTranslation:
+ type: entity
+ repositoryClass: Rapsys\BlogBundle\Repository\KeywordTranslationRepository
+ table: keywords_translations
+ id:
+ keyword_id:
+ type: integer
+ options:
+ unsigned: true
+ language_id:
+ type: smallint
+ options:
+ unsigned: true
+ fields:
+ slug:
+ type: string
+ length: 128
+ title:
+ type: string
+ length: 128
+ description:
+ type: text
+ created:
+ type: datetime
+ updated:
+ type: datetime
+ manyToOne:
+ keyword:
+ targetEntity: Rapsys\BlogBundle\Entity\Keyword
+ inversedBy: keyword_translations
+ language:
+ targetEntity: Rapsys\BlogBundle\Entity\Language
+ inversedBy: keyword_translations
+ uniqueConstraints:
+ slug_language:
+ columns: [ slug, language_id ]
--- /dev/null
+Rapsys\BlogBundle\Entity\Language:
+ type: entity
+ repositoryClass: Rapsys\BlogBundle\Repository\LanguageRepository
+ table: languages
+ indexes:
+ iso6391:
+ columns: [ iso6391 ]
+ iso6393:
+ columns: [ iso6393 ]
+ id:
+ id:
+ type: smallint
+ generator:
+ strategy: AUTO
+ options:
+ unsigned: true
+ fields:
+ iso6391:
+ type: string
+ length: 2
+ iso6393:
+ type: string
+ length: 3
+ created:
+ type: datetime
+ updated:
+ type: datetime
+ oneToMany:
+ article_translations:
+ targetEntity: Rapsys\BlogBundle\Entity\ArticleTranslation
+ mappedBy: language
+ keyword_translations:
+ targetEntity: Rapsys\BlogBundle\Entity\KeywordTranslation
+ mappedBy: language
+ site_translations:
+ targetEntity: Rapsys\BlogBundle\Entity\SiteTranslation
+ mappedBy: language
+ language_translations:
+ targetEntity: Rapsys\BlogBundle\Entity\LanguageTranslation
+ mappedBy: language
+ target_translations:
+ targetEntity: Rapsys\BlogBundle\Entity\LanguageTranslation
+ mappedBy: target
--- /dev/null
+Rapsys\BlogBundle\Entity\LanguageTranslation:
+ type: entity
+ repositoryClass: Rapsys\BlogBundle\Repository\LanguageTranslationRepository
+ table: languages_translations
+ id:
+ language_id:
+ type: smallint
+ options:
+ unsigned: true
+ target_id:
+ type: smallint
+ options:
+ unsigned: true
+ fields:
+ title:
+ type: string
+ length: 128
+ created:
+ type: datetime
+ updated:
+ type: datetime
+ manyToOne:
+ language:
+ targetEntity: Rapsys\BlogBundle\Entity\Language
+ inversedBy: language_translations
+ target:
+ targetEntity: Rapsys\BlogBundle\Entity\Language
+ inversedBy: target_translations
--- /dev/null
+Rapsys\BlogBundle\Entity\Site:
+ type: entity
+ repositoryClass: Rapsys\BlogBundle\Repository\SiteRepository
+ table: sites
+ indexes:
+ domain:
+ columns: [ domain ]
+ id:
+ id:
+ type: smallint
+ generator:
+ strategy: AUTO
+ options:
+ unsigned: true
+ fields:
+ domain:
+ type: string
+ length: 64
+ created:
+ type: datetime
+ updated:
+ type: datetime
+ oneToMany:
+ articles:
+ targetEntity: Rapsys\BlogBundle\Entity\Article
+ mappedBy: site
+ site_translations:
+ targetEntity: Rapsys\BlogBundle\Entity\SiteTranslation
+ mappedBy: site
--- /dev/null
+Rapsys\BlogBundle\Entity\SiteTranslation:
+ type: entity
+ repositoryClass: Rapsys\BlogBundle\Repository\SiteTranslationRepository
+ table: sites_translations
+ id:
+ site_id:
+ type: smallint
+ options:
+ unsigned: true
+ language_id:
+ type: smallint
+ options:
+ unsigned: true
+ fields:
+ title:
+ type: string
+ length: 128
+ description:
+ type: text
+ created:
+ type: datetime
+ updated:
+ type: datetime
+ manyToOne:
+ site:
+ targetEntity: Rapsys\BlogBundle\Entity\Site
+ inversedBy: site_translations
+ language:
+ targetEntity: Rapsys\BlogBundle\Entity\Language
+ inversedBy: site_translations