From 52464df7318d4a3a1dd98d0886ad179a8cb4a1d8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Fri, 10 Nov 2023 13:25:42 +0100 Subject: [PATCH 1/1] Fix indentation Fix relations Add preUpdate callback --- Resources/config/doctrine/Keyword.orm.yml | 46 ++++++++++++----------- 1 file changed, 24 insertions(+), 22 deletions(-) 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'] -- 2.41.1