liquid_feedback_frontend
annotate model/survey_answer.lua @ 1769:5653ab0ccf49
Fixed syntax error
author | bsw |
---|---|
date | Mon Oct 18 16:03:41 2021 +0200 (2021-10-18) |
parents | 5a8a09119865 |
children |
rev | line source |
---|---|
bsw@1735 | 1 SurveyAnswer = mondelefant.new_class() |
bsw@1735 | 2 SurveyAnswer.table = 'survey_answer' |
bsw@1735 | 3 |
bsw@1735 | 4 function SurveyAnswer:by_pk(survey_answer_set_ident, member_id) |
bsw@1735 | 5 return self:new_selector() |
bsw@1735 | 6 :add_where{ "survey_answer_set_ident = ?", survey_answer_set_ident } |
bsw@1735 | 7 :add_where{ "survey_question_id = ?", question_id } |
bsw@1735 | 8 :optional_object_mode() |
bsw@1735 | 9 :exec() |
bsw@1735 | 10 end |