]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Resources/config/doctrine/Snippet.orm.yml
Add rekey feature
[airbundle] / Resources / config / doctrine / Snippet.orm.yml
index a6e91652009ee5e207f0e6b4c0a607dc6307c6c7..85253f3232a182c8d28cc598ae9e96f208d051c7 100644 (file)
@@ -15,6 +15,25 @@ Rapsys\AirBundle\Entity\Snippet:
             length: 2
         description:
             type: text
             length: 2
         description:
             type: text
+        class:
+            type: text
+            nullable: true
+        contact:
+            type: string
+            length: 254
+            nullable: true
+        donate:
+            type: string
+            length: 254
+            nullable: true
+        link:
+            type: string
+            length: 254
+            nullable: true
+        profile:
+            type: string
+            length: 254
+            nullable: true
         created:
             type: datetime
         updated:
         created:
             type: datetime
         updated:
@@ -33,3 +52,5 @@ Rapsys\AirBundle\Entity\Snippet:
     uniqueConstraints:
         locale_location_user:
             columns: [ locale, location_id, user_id ]
     uniqueConstraints:
         locale_location_user:
             columns: [ locale, location_id, user_id ]
+    lifecycleCallbacks:
+        preUpdate: ['preUpdate']