From: Raphaƫl Gertz Date: Fri, 10 Nov 2023 12:25:42 +0000 (+0100) Subject: Fix indentation X-Git-Tag: 0.1~9 X-Git-Url: https://git.rapsys.eu/blogbundle/commitdiff_plain/52464df7318d4a3a1dd98d0886ad179a8cb4a1d8?ds=sidebyside Fix indentation Fix relations Add preUpdate callback --- 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']