Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 4th, 2012  |  syntax: None  |  size: 1.44 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.  
  2. Instrument:
  3.     columns:
  4.         name: { type: string(255), notnull: true, unique: true }
  5.         description: clob
  6.        
  7. Question:
  8.     actAs: [ Taggable ]
  9.     columns:
  10.         name: string(255)
  11.         type: string(255)
  12.         instrument_id: { type: integer, notnull: true }
  13.         item_number: { type: float, notnull: true }
  14.     relations:
  15.         Instrument:
  16.             local: instrument_id
  17.             foreign: id
  18.             foreignAlias: Questions
  19.  
  20.        
  21. Test:
  22.     actAs: [ Timestampable, sfDoctrineSlotTemplate ]
  23.     columns:
  24.         client_id: { type: integer, notnull: true }
  25.         staff_id: { type: integer, notnull: true }
  26.         instrument_id: { type: integer, notnull: true }
  27.     relations:
  28.         Instrument: { local: instrument_id, foreign: id, type: one, foreignType: many, foreignAlias: Tests }
  29.         Staff: { local: staff_id, foreign: id, type: one, foreignType: many, foreignAlias: Tests }
  30.         Client: { local: client_id, foreign: id, type: one, foreignType: many, foreignAlias: Tests }
  31.        
  32. Answer:
  33.     columns:
  34.         test_id: { type: integer, primary: true, notnull: true }
  35.         question_id: { type: integer, primary: true, notnull: true }
  36.         response: string
  37.     relations:
  38.         Test: { local: test_id, foreign: id, type: one, foreignType: many, foreignAlias: Answers }
  39.         Question: { local: question_id, foreign: id, type: one, foreignType: many, foreignAlias: Answers }