X-Git-Url: https://git.rapsys.eu/blogbundle/blobdiff_plain/97215da101c2bd6c0ba7fc0beb45a2bb045220dd..eae4b5e135c63c0a887b81ef7abed2e06a1e879f:/Resources/config/doctrine/Keyword.orm.yml?ds=sidebyside diff --git a/Resources/config/doctrine/Keyword.orm.yml b/Resources/config/doctrine/Keyword.orm.yml index 3935bf8..86f37b1 100644 --- a/Resources/config/doctrine/Keyword.orm.yml +++ b/Resources/config/doctrine/Keyword.orm.yml @@ -1,24 +1,26 @@ Rapsys\BlogBundle\Entity\Keyword: - type: entity - repositoryClass: Rapsys\BlogBundle\Repository\KeywordRepository - table: keywords + type: entity + repositoryClass: Rapsys\BlogBundle\Repository\KeywordRepository + table: keywords + id: 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 + 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 + lifecycleCallbacks: + preUpdate: ['preUpdate']