X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/blogbundle/blobdiff_plain/7ab0c56bbb9c228d9b6b24cdee90c1fa73570a6a..97215da101c2bd6c0ba7fc0beb45a2bb045220dd:/Resources/config/doctrine/Language.orm.yml diff --git a/Resources/config/doctrine/Language.orm.yml b/Resources/config/doctrine/Language.orm.yml new file mode 100644 index 0000000..9099e65 --- /dev/null +++ b/Resources/config/doctrine/Language.orm.yml @@ -0,0 +1,43 @@ +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