X-Git-Url: https://git.rapsys.eu/blogbundle/blobdiff_plain/fa8e4de5602433d52b2bb19c1a196c07da3b0cb8..202a49459b57616a1632469daddff3f617263cbe:/config/doctrine/KeywordTranslation.orm.yml diff --git a/config/doctrine/KeywordTranslation.orm.yml b/config/doctrine/KeywordTranslation.orm.yml new file mode 100644 index 0000000..18cf06e --- /dev/null +++ b/config/doctrine/KeywordTranslation.orm.yml @@ -0,0 +1,39 @@ +Rapsys\BlogBundle\Entity\KeywordTranslation: + type: entity + repositoryClass: Rapsys\BlogBundle\Repository\KeywordTranslationRepository + table: keywords_translations + id: + keyword_id: + type: integer + options: + unsigned: true + locale: + type: string + length: 5 + fields: + 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: + keyword: + targetEntity: Rapsys\BlogBundle\Entity\Keyword + inversedBy: keyword_translations + joinColumn: + nullable: false + uniqueConstraints: + locale_slug: + columns: [ locale, slug ] + lifecycleCallbacks: + preUpdate: ['preUpdate']