liquid_feedback_frontend
view model/survey_answer.lua @ 1754:22a75f55ff48
merge
author | bsw |
---|---|
date | Wed Oct 13 13:33:43 2021 +0200 (2021-10-13) |
parents | 5a8a09119865 |
children |
line source
1 SurveyAnswer = mondelefant.new_class()
2 SurveyAnswer.table = 'survey_answer'
4 function SurveyAnswer:by_pk(survey_answer_set_ident, member_id)
5 return self:new_selector()
6 :add_where{ "survey_answer_set_ident = ?", survey_answer_set_ident }
7 :add_where{ "survey_question_id = ?", question_id }
8 :optional_object_mode()
9 :exec()
10 end