'required', 'user_id' => 'required', 'answer' => 'required', 'question_id' => 'required', ]; public function getRespuestas($survey_id, $user_id) { return $this ->where(['survey_id' => $survey_id, 'user_id' => $user_id]) ->findAll(); } }