Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. DkEvent:
  2. actAs:
  3. Sluggable:
  4. unique: true
  5. fields: [title]
  6. canUpdate: true
  7. columns:
  8. competition_id: { type: integer, notnull: true }
  9. title: { type: string(168), notnull: true }
  10. short: { type: string(1000), notnull: false }
  11. full: { type: clob(2147483647), notnull: false }
  12. date: { type: date, notnull: false }
  13. css: { type: string(256), notnull: false }
  14. class: { type: string(168), notnull: false }
  15. relations:
  16. Competition:
  17. class: DkCompetition
  18. local: competition_id
  19. foreign: id
  20. onUpdate: CASCADE
  21. foreignAlias: Events
  22. CompetitionTeams:
  23. class: DkCompetitionTeam
  24. local: event_id
  25. foreign: competition_team_id
  26. refClass: DkEventDkCompetitionTeam
  27. foreignAlias: Events
  28. Users:
  29. class: sfGuardUser
  30. local: event_id
  31. foreign: user_id
  32. refClass: DkEventSfGuardUser
  33. foreignAlias: Events
  34.  
  35. DkEventSfGuardUser:
  36. options:
  37. symfony: { filter: false }
  38. columns:
  39. event_id: { type: integer, primary: true }
  40. user_id: { type: integer, primary: true }
  41. points: { type: integer }
  42. relations:
  43. Event:
  44. class: DkEvent
  45. local: event_id
  46. onDelete: CASCADE
  47. foreignAlias: EventUser
  48. User:
  49. class: sfGuardUser
  50. local: user_id
  51. onDelete: CASCADE
  52. foreignAlias: EventUser
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement