Rapsys Git
/
airbundle
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New header layout
[airbundle]
/
Resources
/
config
/
doctrine
/
Snippet.orm.yml
diff --git
a/Resources/config/doctrine/Snippet.orm.yml
b/Resources/config/doctrine/Snippet.orm.yml
index 4b172d65073fdbf91545a1ccffcf147be0154d2a..2333e9aea829cca08944e9ea70d4c4e8fd23ef8f 100644
(file)
--- a/
Resources/config/doctrine/Snippet.orm.yml
+++ b/
Resources/config/doctrine/Snippet.orm.yml
@@
-12,12
+12,24
@@
Rapsys\AirBundle\Entity\Snippet:
fields:
locale:
type: string
fields:
locale:
type: string
- length:
2
+ length:
5
description:
type: text
description:
type: text
+ nullable: true
class:
type: text
nullable: true
class:
type: text
nullable: true
+ short:
+ type: text
+ nullable: true
+ rate:
+ type: integer
+ nullable: true
+ options:
+ unsigned: true
+ hat:
+ type: boolean
+ nullable: true
contact:
type: string
length: 254
contact:
type: string
length: 254
@@
-52,3
+64,5
@@
Rapsys\AirBundle\Entity\Snippet:
uniqueConstraints:
locale_location_user:
columns: [ locale, location_id, user_id ]
uniqueConstraints:
locale_location_user:
columns: [ locale, location_id, user_id ]
+ lifecycleCallbacks:
+ preUpdate: ['preUpdate']