X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/9e393571b201ae19db89b1120ad8596567bed53f..6e7be14516236247be016fd13a87790c1a1fe029:/Resources/config/doctrine/Snippet.orm.yml diff --git a/Resources/config/doctrine/Snippet.orm.yml b/Resources/config/doctrine/Snippet.orm.yml index 4b172d6..d37862a 100644 --- a/Resources/config/doctrine/Snippet.orm.yml +++ b/Resources/config/doctrine/Snippet.orm.yml @@ -12,12 +12,21 @@ Rapsys\AirBundle\Entity\Snippet: fields: locale: type: string - length: 2 + length: 5 description: type: text + nullable: true class: type: text nullable: true + short: + type: text + nullable: true + rate: + type: integer + nullable: true + options: + unsigned: true contact: type: string length: 254 @@ -52,3 +61,5 @@ Rapsys\AirBundle\Entity\Snippet: uniqueConstraints: locale_location_user: columns: [ locale, location_id, user_id ] + lifecycleCallbacks: + preUpdate: ['preUpdate']