]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Resources/config/doctrine/Slot.orm.yml
Optionalize each account field
[airbundle] / Resources / config / doctrine / Slot.orm.yml
index cd02ac35506674d8b53c649dc40368eea7eba69f..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
-        length:
-            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']