]> Raphaƫl G. Git Repositories - blogbundle/blobdiff - Resources/config/doctrine/Keyword.orm.yml
Add edit template
[blogbundle] / Resources / config / doctrine / Keyword.orm.yml
index 3935bf86c56accdb9292d51cffa5ab60cbb22ed4..86f37b122a523932a755df4d6fbb1e096a75b16a 100644 (file)
@@ -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']