Skip to content

Commit

Permalink
Merge pull request #26 from EscolaLMS/feature/STAR-440
Browse files Browse the repository at this point in the history
fix sql
  • Loading branch information
KrzysztofDziedziechEscolasoft authored Mar 11, 2022
2 parents 4611916 + 2d0a958 commit cd0885d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Repository/QuestionAnswerRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public function searchAndPaginate(array $search = [], ?int $perPage = null, stri
{
return $this
->allQuery($search)
->select($this->model->table.'.*')
->orderBy($this->model->table.'.'.$orderColumn, $orderDirection)
->join('questions', 'question_id', '=', 'questions.id')
->where('questions.questionnaire_id', '=', $search['questionnaire_id'])
Expand Down

0 comments on commit cd0885d

Please sign in to comment.