X-Git-Url: https://git.rapsys.eu/blogbundle/blobdiff_plain/97215da101c2bd6c0ba7fc0beb45a2bb045220dd..c2115d231ac7db51a60d026f2f3413687ee5e7d1:/Resources/config/doctrine/Keyword.orm.yml 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']