Merge pull request 'Added machine relation in work group master model file' (#226) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 12s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 12s
Reviewed-on: #226
This commit was merged in pull request #226.
This commit is contained in:
@@ -25,6 +25,11 @@ class WorkGroupMaster extends Model
|
||||
return $this->belongsTo(Plant::class);
|
||||
}
|
||||
|
||||
public function machines()
|
||||
{
|
||||
return $this->hasMany(Machine::class, 'work_group_master_id');
|
||||
}
|
||||
|
||||
// public function rejectReasons()
|
||||
// {
|
||||
// return $this->hasMany(RejectReason::class, 'work_group_master_id', 'id');
|
||||
|
||||
Reference in New Issue
Block a user