Yarn
This commit is contained in:
@@ -56,11 +56,11 @@ class ExamMemberRank extends Model
|
||||
* @return void
|
||||
*/
|
||||
protected static function boot()
|
||||
{
|
||||
{
|
||||
parent::boot();
|
||||
|
||||
static::addGlobalScope('exam_member_rank_member_rank_id', function ($builder) {
|
||||
$builder->where('member_rank_id', '<>', null);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ class ExamMemberRankAnswer extends Model
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
/**
|
||||
* The "booting" method of the model.
|
||||
*
|
||||
* @return void
|
||||
|
||||
@@ -32,10 +32,7 @@ class ExamMemberRankQuestion extends Model
|
||||
];
|
||||
|
||||
public $hasMany = [
|
||||
'exam_answers' => [
|
||||
'GermanAirlinesVa\Schooling\Models\ExamMemberRankAnswer',
|
||||
'key' => 'exam_question_id',
|
||||
],
|
||||
'exam_answers' => ['GermanAirlinesVa\Schooling\Models\ExamMemberRankAnswer', 'key' => 'exam_question_id'],
|
||||
];
|
||||
|
||||
public $belongsTo = [
|
||||
|
||||
@@ -36,7 +36,7 @@ class ExamTyperating extends Model
|
||||
];
|
||||
|
||||
public $belongsToMany = [
|
||||
'exam_questions' => [
|
||||
'exam_questions' => [
|
||||
'GermanAirlinesVa\Schooling\Models\ExamTyperatingQuestion',
|
||||
'table' => 'exam_exam_answer_exam_question',
|
||||
'key' => 'exam_id',
|
||||
|
||||
@@ -32,10 +32,7 @@ class ExamTyperatingQuestion extends Model
|
||||
];
|
||||
|
||||
public $hasMany = [
|
||||
'exam_answers' => [
|
||||
'GermanAirlinesVa\Schooling\Models\ExamTyperatingAnswer',
|
||||
'key' => 'exam_question_id',
|
||||
],
|
||||
'exam_answers' => ['GermanAirlinesVa\Schooling\Models\ExamTyperatingAnswer', 'key' => 'exam_question_id'],
|
||||
];
|
||||
|
||||
public $belongsTo = [
|
||||
@@ -51,7 +48,7 @@ class ExamTyperatingQuestion extends Model
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
/**
|
||||
* The "booting" method of the model.
|
||||
*
|
||||
* @return void
|
||||
|
||||
Reference in New Issue
Block a user