Rapsys Git
/
airbundle
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
929a394
)
Transform title in name and type
author
Raphaël Gertz
<git@rapsys.eu>
Tue, 4 Oct 2022 07:47:14 +0000
(09:47 +0200)
committer
Raphaël Gertz
<git@rapsys.eu>
Tue, 4 Oct 2022 07:47:14 +0000
(09:47 +0200)
Resources/config/doctrine/Dance.orm.yml
patch
|
blob
|
history
diff --git
a/Resources/config/doctrine/Dance.orm.yml
b/Resources/config/doctrine/Dance.orm.yml
index e1cba845a5dbf10b1712e41057fa141e3002ed48..0d241cc153545cc065315095c3e8db83993857c7 100644
(file)
--- 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']