X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/blobdiff_plain/2aece99eee79773867b883158938faa0a66ad00b..ae0d339ee9f1003b9e9cea62f18c5859d8b87b54:/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 6427d1a..0d241cc 100644 --- a/Resources/config/doctrine/Dance.orm.yml +++ b/Resources/config/doctrine/Dance.orm.yml @@ -1,6 +1,6 @@ Rapsys\AirBundle\Entity\Dance: type: entity - #repositoryClass: Rapsys\AirBundle\Repository\DanceRepository + repositoryClass: Rapsys\AirBundle\Repository\DanceRepository table: dances id: id: @@ -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']