Merge pull request 'added ref of panel gr master in item model' (#854) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Reviewed-on: #854
This commit was merged in pull request #854.
This commit is contained in:
@@ -91,11 +91,22 @@ class Item extends Model
|
||||
|
||||
public function tempClassCharacteristics()
|
||||
{
|
||||
return $this->hasMany(TempClassCharacteristic::class, 'plant_id', 'id');
|
||||
return $this->hasMany(TempClassCharacteristic::class, 'item_id', 'id');
|
||||
}
|
||||
|
||||
public function weightValidations()
|
||||
{
|
||||
return $this->hasMany(WeightValidation::class);
|
||||
}
|
||||
|
||||
public function locatorValidations()
|
||||
{
|
||||
return $this->hasMany(LocatorValidation::class, 'item_id', 'id');
|
||||
}
|
||||
|
||||
public function panelGrMasters()
|
||||
{
|
||||
return $this->hasMany(PanelGrMaster::class, 'item_id', 'id');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user