X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/bf931483b4140b53d95a30a93808bfc118ed18c9..36367b3d9770a29f2e516e40524c5d4eef8a9aca:/Resources/config/doctrine/Snippet.orm.yml?ds=sidebyside

diff --git a/Resources/config/doctrine/Snippet.orm.yml b/Resources/config/doctrine/Snippet.orm.yml
index 4b172d6..2333e9a 100644
--- a/Resources/config/doctrine/Snippet.orm.yml
+++ b/Resources/config/doctrine/Snippet.orm.yml
@@ -12,12 +12,24 @@ Rapsys\AirBundle\Entity\Snippet:
     fields:
         locale:
             type: string
-            length: 2
+            length: 5
         description:
             type: text
+            nullable: true
         class:
             type: text
             nullable: true
+        short:
+            type: text
+            nullable: true
+        rate:
+            type: integer
+            nullable: true
+            options:
+                unsigned: true
+        hat:
+            type: boolean
+            nullable: true
         contact:
             type: string
             length: 254
@@ -52,3 +64,5 @@ Rapsys\AirBundle\Entity\Snippet:
     uniqueConstraints:
         locale_location_user:
             columns: [ locale, location_id, user_id ]
+    lifecycleCallbacks:
+        preUpdate: ['preUpdate']