X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/4457ca58283630964b9bb40f52771457cd256a72..d63bc87d902d3789959e5efec1c47357854c6fbd:/Resources/config/doctrine/Slot.orm.yml 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']