Added product char master relation in plant model #236
@@ -122,4 +122,9 @@ class Plant extends Model
|
|||||||
{
|
{
|
||||||
return $this->hasMany(Machine::class, 'plant_id', 'id');
|
return $this->hasMany(Machine::class, 'plant_id', 'id');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function productCharacteristicsMasters()
|
||||||
|
{
|
||||||
|
return $this->hasMany(ProductCharacteristicsMaster::class, 'plant_id', 'id');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user