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