X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/58242917a50ec39071529953e77343fd3eb6dda0..8a277662d5755d3f28a53a77f82d4376bdcbccba:/Resources/config/doctrine/Slot.orm.yml?ds=sidebyside diff --git a/Resources/config/doctrine/Slot.orm.yml b/Resources/config/doctrine/Slot.orm.yml index c4ff511..19493b2 100644 --- a/Resources/config/doctrine/Slot.orm.yml +++ b/Resources/config/doctrine/Slot.orm.yml @@ -1,6 +1,6 @@ Rapsys\AirBundle\Entity\Slot: type: entity - #repositoryClass: Rapsys\AirBundle\Repository\SlotRepository + repositoryClass: Rapsys\AirBundle\Repository\SlotRepository table: slots id: id: @@ -10,10 +10,9 @@ Rapsys\AirBundle\Entity\Slot: options: unsigned: true fields: - begin: - type: time - end: - 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']