Added machine has many in model files
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 15s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 17s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 15s
Laravel Pint / pint (pull_request) Successful in 1m59s
Laravel Larastan / larastan (pull_request) Failing after 3m27s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 15s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 17s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 15s
Laravel Pint / pint (pull_request) Successful in 1m59s
Laravel Larastan / larastan (pull_request) Failing after 3m27s
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