liquid_feedback_frontend
annotate model/survey_answer_set.lua @ 1735:5a8a09119865
Added survey feature
author | bsw |
---|---|
date | Fri Oct 08 00:09:23 2021 +0200 (2021-10-08) |
parents | |
children |
rev | line source |
---|---|
bsw@1735 | 1 SurveyAnswerSet = mondelefant.new_class() |
bsw@1735 | 2 SurveyAnswerSet.table = 'survey_answer_set' |
bsw@1735 | 3 SurveyAnswerSet.primary_key = "ident" |
bsw@1735 | 4 |
bsw@1735 | 5 SurveyAnswerSet:add_reference{ |
bsw@1735 | 6 mode = '1m', |
bsw@1735 | 7 to = "SurveyAnswer", |
bsw@1735 | 8 this_key = 'ident', |
bsw@1735 | 9 that_key = 'survey_answer_set_ident', |
bsw@1735 | 10 ref = 'answers', |
bsw@1735 | 11 back_ref = 'answer_set' |
bsw@1735 | 12 } |