mirror of
https://github.com/robonen/education-project.git
synced 2026-03-20 02:44:31 +00:00
Модуль Задания(fix some bugs)
This commit is contained in:
@@ -19,15 +19,15 @@ class Task extends Model
|
||||
}
|
||||
|
||||
public function class() {
|
||||
$this->belongsTo(SchoolClass::class);
|
||||
return $this->belongsTo(SchoolClass::class);
|
||||
}
|
||||
|
||||
public function tasks() {
|
||||
$this->hasMany(Task::class);
|
||||
return $this->hasMany(Task::class);
|
||||
}
|
||||
|
||||
public function answers() {
|
||||
$this->hasMany(AnswerToTask::class);
|
||||
return $this->hasMany(AnswerToTask::class);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user