]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Resources/config/doctrine/Snippet.orm.yml
Update translation
[airbundle] / Resources / config / doctrine / Snippet.orm.yml
index a6e91652009ee5e207f0e6b4c0a607dc6307c6c7..d37862a253c2838ab3053dc7f2fe9038ce81f85c 100644 (file)
@@ -12,9 +12,37 @@ Rapsys\AirBundle\Entity\Snippet:
     fields:
         locale:
             type: string
     fields:
         locale:
             type: string
-            length: 2
+            length: 5
         description:
             type: text
         description:
             type: text
+            nullable: true
+        class:
+            type: text
+            nullable: true
+        short:
+            type: text
+            nullable: true
+        rate:
+            type: integer
+            nullable: true
+            options:
+                unsigned: 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 +61,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']