X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/blobdiff_plain/42d2646c377a92fd92d37e09ef6b733fa9b50946..afe9a4a1e36cab2e5fd0b352131f20765dc48a66:/Resources/config/doctrine/Snippet.orm.yml diff --git a/Resources/config/doctrine/Snippet.orm.yml b/Resources/config/doctrine/Snippet.orm.yml index a6e9165..d37862a 100644 --- a/Resources/config/doctrine/Snippet.orm.yml +++ b/Resources/config/doctrine/Snippet.orm.yml @@ -12,9 +12,37 @@ 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 + 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 +61,5 @@ Rapsys\AirBundle\Entity\Snippet: uniqueConstraints: locale_location_user: columns: [ locale, location_id, user_id ] + lifecycleCallbacks: + preUpdate: ['preUpdate']