X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/27e96ddbd6cf1016928c32dc0cb9d37a8ef0ba47..858d97d405fff8d374dbd8b92a924ced12c8d60e:/Resources/config/doctrine/Snippet.orm.yml diff --git a/Resources/config/doctrine/Snippet.orm.yml b/Resources/config/doctrine/Snippet.orm.yml index a6e9165..19db349 100644 --- a/Resources/config/doctrine/Snippet.orm.yml +++ b/Resources/config/doctrine/Snippet.orm.yml @@ -12,9 +12,42 @@ 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 + hat: + type: boolean + nullable: true + options: + default: true + contact: + type: string + length: 254 + nullable: true + donate: + type: string + length: 254 + nullable: true + link: + type: string + length: 254 + nullable: true + profile: + type: string + length: 254 + nullable: true created: type: datetime updated: @@ -33,3 +66,5 @@ Rapsys\AirBundle\Entity\Snippet: uniqueConstraints: locale_location_user: columns: [ locale, location_id, user_id ] + lifecycleCallbacks: + preUpdate: ['preUpdate']