Added machine has many in model files
This commit is contained in:
@@ -49,6 +49,11 @@ class Plant extends Model
|
|||||||
return $this->hasMany(StickerMaster::class, 'plant_id', 'id');
|
return $this->hasMany(StickerMaster::class, 'plant_id', 'id');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function locators(): HasMany
|
||||||
|
{
|
||||||
|
return $this->hasMany(Locator::class, 'plant_id', 'id');
|
||||||
|
}
|
||||||
|
|
||||||
public function weightValidations(): HasMany
|
public function weightValidations(): HasMany
|
||||||
{
|
{
|
||||||
return $this->hasMany(WeightValidation::class, 'plant_id', 'id');
|
return $this->hasMany(WeightValidation::class, 'plant_id', 'id');
|
||||||
@@ -104,6 +109,11 @@ class Plant extends Model
|
|||||||
return $this->hasMany(WorkGroupMaster::class, 'plant_id', 'id');
|
return $this->hasMany(WorkGroupMaster::class, 'plant_id', 'id');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function machines()
|
||||||
|
{
|
||||||
|
return $this->hasMany(Machine::class, 'plant_id', 'id');
|
||||||
|
}
|
||||||
|
|
||||||
public function processOrders()
|
public function processOrders()
|
||||||
{
|
{
|
||||||
return $this->hasMany(ProcessOrder::class, 'plant_id', 'id');
|
return $this->hasMany(ProcessOrder::class, 'plant_id', 'id');
|
||||||
@@ -178,4 +188,9 @@ class Plant extends Model
|
|||||||
{
|
{
|
||||||
return $this->hasMany(AsrsItemValidation::class, 'plant_id', 'id');
|
return $this->hasMany(AsrsItemValidation::class, 'plant_id', 'id');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// public function locatorValidations()
|
||||||
|
// {
|
||||||
|
// return $this->hasMany(LocatorValidation::class, 'plant_id', 'id');
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,6 +30,11 @@ class WorkGroupMaster extends Model
|
|||||||
return $this->hasMany(ProductCharacteristicsMaster::class);
|
return $this->hasMany(ProductCharacteristicsMaster::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function machines()
|
||||||
|
{
|
||||||
|
return $this->hasMany(Machine::class, 'work_group_master_id');
|
||||||
|
}
|
||||||
|
|
||||||
// public function rejectReasons()
|
// public function rejectReasons()
|
||||||
// {
|
// {
|
||||||
// return $this->hasMany(RejectReason::class, 'work_group_master_id', 'id');
|
// return $this->hasMany(RejectReason::class, 'work_group_master_id', 'id');
|
||||||
|
|||||||
Reference in New Issue
Block a user