]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Resources/config/doctrine/Slot.orm.yml
Rename short to description
[airbundle] / Resources / config / doctrine / Slot.orm.yml
index c4ff511884848b0d2a50be484aa1f626099f0cb1..d09120d8bcb001419d36eef9704c61099cfbdd67 100644 (file)
@@ -10,10 +10,9 @@ Rapsys\AirBundle\Entity\Slot:
             options:
                 unsigned: true
     fields:
             options:
                 unsigned: true
     fields:
-        begin:
-            type: time
-        end:
-            type: time
+        title:
+            type: string
+            length: 16
         created:
             type: datetime
         updated:
         created:
             type: datetime
         updated:
@@ -22,3 +21,5 @@ Rapsys\AirBundle\Entity\Slot:
         sessions:
             targetEntity: Rapsys\AirBundle\Entity\Session
             mappedBy: slot
         sessions:
             targetEntity: Rapsys\AirBundle\Entity\Session
             mappedBy: slot
+    lifecycleCallbacks:
+        preUpdate: ['preUpdate']