Guest User

Untitled

a guest
Jul 21st, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. Gallery:
  2. columns:
  3. caption:
  4. type: string(255)
  5. notnull: true
  6. description:
  7. type: clob
  8. extra: tinymce
  9. notnull: true
  10.  
  11. Media:
  12. actAs:
  13. Timestampable:
  14. columns:
  15. caption:
  16. type: string(255)
  17. notnull: true
  18. is_displayed_on_home:
  19. type: boolean
  20. default: false
  21.  
  22. Video:
  23. inheritance:
  24. type: column_aggregation
  25. extends: Media
  26. columns:
  27. preview_id:
  28. type: integer
  29. # notnull: false
  30. video_id:
  31. type: integer
  32. # notnull: false
  33. gallery_id:
  34. type: integer
  35. # notnull: false
  36. relations:
  37. Preview:
  38. class: DmMedia
  39. local: preview_id
  40. onDelete: RESTRICT # the file can not be deleted, unless if the LibraryEntry is deleted before
  41. Video:
  42. class: DmMedia
  43. local: video_id
  44. onDelete: RESTRICT # the video can not be deleted, unless if the article is deleted before that
  45. Gallery:
  46. local: gallery_id
  47. onDelete: CASCADE
  48.  
  49.  
  50. Photo:
  51. inheritance:
  52. type: column_aggregation
  53. extends: Media
  54. columns:
  55. image_id:
  56. type: integer
  57. # notnull: false
  58. gallery_id:
  59. type: integer
  60. # notnull: false
  61. relations:
  62. Image:
  63. class: DmMedia
  64. local: image_id
  65. onDelete: RESTRICT # the file can not be deleted, unless if the LibraryEntry is deleted before
  66. Gallery:
  67. local: gallery_id
  68. onDelete: CASCADE
Add Comment
Please, Sign In to add comment