]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Resources/config/doctrine/Slot.orm.yml
Add preUpdate doctrine lifecycle callbacks
[airbundle] / Resources / config / doctrine / Slot.orm.yml
index c4ff511884848b0d2a50be484aa1f626099f0cb1..19493b24a5569163d5f4c9f27ff66a0bbcca5f70 100644 (file)
@@ -1,6 +1,6 @@
 Rapsys\AirBundle\Entity\Slot:
     type: entity
 Rapsys\AirBundle\Entity\Slot:
     type: entity
-    #repositoryClass: Rapsys\AirBundle\Repository\SlotRepository
+    repositoryClass: Rapsys\AirBundle\Repository\SlotRepository
     table: slots
     id:
         id:
     table: slots
     id:
         id:
@@ -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']