GermanAirlinesVA-Schooling/controllers/ExamTyperatingAnswer.php

23 lines
599 B
PHP

<?php namespace GermanAirlinesVa\Schooling\Controllers;
use Backend\Classes\Controller;
class ExamTyperatingAnswer extends Controller
{
public $implement = ['Backend\Behaviors\ListController', 'Backend\Behaviors\FormController'];
public $listConfig = 'config_list.yaml';
public $formConfig = 'config_form.yaml';
public function __construct()
{
parent::__construct();
}
public function listExtendQuery($query)
{
$query->leftJoin('exam_questions', 'exam_questions.id', 'exam_answers.exam_question_id');
$query->where('exam_questions.typerating_id', '<>', null);
}
}