X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/db264be9197438b39867f2bd8872c6a11b4f52c1..3bb7706790b4f955cfbc412ee65c4a620c15d5b0:/Resources/config/doctrine/Dance.orm.yml?ds=sidebyside diff --git a/Resources/config/doctrine/Dance.orm.yml b/Resources/config/doctrine/Dance.orm.yml index e1cba84..0d241cc 100644 --- a/Resources/config/doctrine/Dance.orm.yml +++ b/Resources/config/doctrine/Dance.orm.yml @@ -10,7 +10,10 @@ Rapsys\AirBundle\Entity\Dance: options: unsigned: true fields: - title: + name: + type: string + length: 32 + type: type: string length: 32 created: @@ -25,5 +28,8 @@ Rapsys\AirBundle\Entity\Dance: users: targetEntity: Rapsys\AirBundle\Entity\User mappedBy: dances + uniqueConstraints: + name_type: + columns: [ name, type ] lifecycleCallbacks: preUpdate: ['preUpdate']