You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
587 B
25 lines
587 B
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
class ScheduleOverviewScheduleGroup extends SoftDeletesModel
|
|
{
|
|
protected $table = 'schedule_overview_schedule_groups';
|
|
|
|
public function system()
|
|
{
|
|
return $this->belongsTo(ScheduleOverviewSystem::class, 'system_id', 'id');
|
|
}
|
|
|
|
public function course()
|
|
{
|
|
return $this->belongsTo(ScheduleOverviewCourse::class, 'course_id', 'id');
|
|
}
|
|
|
|
public function modules()
|
|
{
|
|
return $this->hasMany(ScheduleOverviewScheduleModule::class, 'group_id', 'id')->orderBy('month')->orderBy('sort')->orderBy('id');
|
|
}
|
|
}
|
|
|