]> Raphaël G. Git Repositories - blogbundle/commitdiff
Fix indentation
authorRaphaël Gertz <git@rapsys.eu>
Fri, 10 Nov 2023 12:25:42 +0000 (13:25 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Fri, 10 Nov 2023 12:25:42 +0000 (13:25 +0100)
Fix relations
Add preUpdate callback

Resources/config/doctrine/Keyword.orm.yml

index 3935bf86c56accdb9292d51cffa5ab60cbb22ed4..86f37b122a523932a755df4d6fbb1e096a75b16a 100644 (file)
@@ -1,24 +1,26 @@
 Rapsys\BlogBundle\Entity\Keyword:
 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:
-                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']