added ref of panel gr master in item model #854
@@ -91,11 +91,22 @@ class Item extends Model
|
|||||||
|
|
||||||
public function tempClassCharacteristics()
|
public function tempClassCharacteristics()
|
||||||
{
|
{
|
||||||
return $this->hasMany(TempClassCharacteristic::class, 'plant_id', 'id');
|
return $this->hasMany(TempClassCharacteristic::class, 'item_id', 'id');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function weightValidations()
|
public function weightValidations()
|
||||||
{
|
{
|
||||||
return $this->hasMany(WeightValidation::class);
|
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