X-Git-Url: https://git.rapsys.eu/blogbundle/blobdiff_plain/fa8e4de5602433d52b2bb19c1a196c07da3b0cb8..202a49459b57616a1632469daddff3f617263cbe:/config/doctrine/ArticleTranslation.orm.yml?ds=inline diff --git a/config/doctrine/ArticleTranslation.orm.yml b/config/doctrine/ArticleTranslation.orm.yml new file mode 100644 index 0000000..87ffe4a --- /dev/null +++ b/config/doctrine/ArticleTranslation.orm.yml @@ -0,0 +1,42 @@ +Rapsys\BlogBundle\Entity\ArticleTranslation: + type: entity + repositoryClass: Rapsys\BlogBundle\Repository\ArticleTranslationRepository + table: articles_translations + id: + article_id: + type: integer + options: + unsigned: true + locale: + type: string + length: 5 + fields: + body: + type: text + nullable: true + description: + type: text + nullable: true + slug: + type: string + length: 128 + nullable: true + title: + type: string + length: 128 + nullable: true + created: + type: datetime + updated: + type: datetime + manyToOne: + article: + targetEntity: Rapsys\BlogBundle\Entity\Article + inversedBy: article_translations + joinColumn: + nullable: false + uniqueConstraints: + locale_slug: + columns: [ locale, slug ] + lifecycleCallbacks: + preUpdate: ['preUpdate']