Add workGroupMasters hasMany relationship to Plant model and comment out rejectReasons method
This commit is contained in:
@@ -82,4 +82,14 @@ class Plant extends Model
|
||||
{
|
||||
return $this->hasMany(GuardPatrolEntry::class, 'plant_id', 'id');
|
||||
}
|
||||
|
||||
public function workGroupMasters()
|
||||
{
|
||||
return $this->hasMany(WorkGroupMaster::class, 'plant_id', 'id');
|
||||
}
|
||||
|
||||
// public function rejectReasons()
|
||||
// {
|
||||
// return $this->hasMany(RejectReason::class, 'plant_id', 'id');
|
||||
// }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user