X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/blobdiff_plain/42d2646c377a92fd92d37e09ef6b733fa9b50946..6ccedcf49c3abe5e576c841e0a0e6fca60a657cb:/Resources/config/doctrine/Snippet.orm.yml?ds=sidebyside diff --git a/Resources/config/doctrine/Snippet.orm.yml b/Resources/config/doctrine/Snippet.orm.yml index a6e9165..85253f3 100644 --- a/Resources/config/doctrine/Snippet.orm.yml +++ b/Resources/config/doctrine/Snippet.orm.yml @@ -15,6 +15,25 @@ Rapsys\AirBundle\Entity\Snippet: length: 2 description: type: text + class: + type: text + nullable: 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 +52,5 @@ Rapsys\AirBundle\Entity\Snippet: uniqueConstraints: locale_location_user: columns: [ locale, location_id, user_id ] + lifecycleCallbacks: + preUpdate: ['preUpdate']