Rapsys\AirBundle\Entity\Dance:
type: entity
- #repositoryClass: Rapsys\AirBundle\Repository\DanceRepository
+ repositoryClass: Rapsys\AirBundle\Repository\DanceRepository
table: dances
id:
id:
options:
unsigned: true
fields:
- title:
+ name:
+ type: string
+ length: 32
+ type:
type: string
length: 32
created:
users:
targetEntity: Rapsys\AirBundle\Entity\User
mappedBy: dances
+ uniqueConstraints:
+ name_type:
+ columns: [ name, type ]
lifecycleCallbacks:
preUpdate: ['preUpdate']