From 062185c54ffda5d0087a12303bbec86550b8e214 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Fri, 10 Nov 2023 13:24:40 +0100 Subject: [PATCH 1/1] Fix indentation Fix relations Add preUpdate callback --- Resources/config/doctrine/Article.orm.yml | 61 +++++++++++------------ 1 file changed, 30 insertions(+), 31 deletions(-) diff --git a/Resources/config/doctrine/Article.orm.yml b/Resources/config/doctrine/Article.orm.yml index bb32b84..6efd871 100644 --- a/Resources/config/doctrine/Article.orm.yml +++ b/Resources/config/doctrine/Article.orm.yml @@ -1,33 +1,32 @@ Rapsys\BlogBundle\Entity\Article: - type: entity - repositoryClass: Rapsys\BlogBundle\Repository\ArticleRepository - table: articles + type: entity + repositoryClass: Rapsys\BlogBundle\Repository\ArticleRepository + table: articles + id: id: - id: - type: integer - generator: - strategy: AUTO - options: - unsigned: true - fields: - created: - type: datetime - updated: - type: datetime - manyToOne: - site: - targetEntity: Rapsys\BlogBundle\Entity\Site - inversedBy: articles - author: - targetEntity: Rapsys\BlogBundle\Entity\Author - inversedBy: articles - manyToMany: - keywords: - targetEntity: Rapsys\BlogBundle\Entity\Keyword - inversedBy: articles - joinTable: - name: articles_keywords - oneToMany: - article_translations: - targetEntity: Rapsys\BlogBundle\Entity\ArticleTranslation - mappedBy: article + type: integer + generator: + strategy: AUTO + options: + unsigned: true + fields: + created: + type: datetime + updated: + type: datetime + manyToOne: + user: + targetEntity: Rapsys\BlogBundle\Entity\User + inversedBy: articles + manyToMany: + keywords: + targetEntity: Rapsys\BlogBundle\Entity\Keyword + inversedBy: articles + joinTable: + name: articles_keywords + oneToMany: + article_translations: + targetEntity: Rapsys\BlogBundle\Entity\ArticleTranslation + mappedBy: article + lifecycleCallbacks: + preUpdate: ['preUpdate'] -- 2.41.1