Added before test reading model files for hasMany relations
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 26s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 26s
This commit is contained in:
@@ -51,6 +51,11 @@ class Line extends Model
|
|||||||
return $this->hasMany(TestingPanelReading::class);
|
return $this->hasMany(TestingPanelReading::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function beforeTestReadings()
|
||||||
|
{
|
||||||
|
return $this->hasMany(BeforeTestReading::class);
|
||||||
|
}
|
||||||
|
|
||||||
public function workGroupMasters(): BelongsTo
|
public function workGroupMasters(): BelongsTo
|
||||||
{
|
{
|
||||||
return $this->belongsTo(WorkGroupMaster::class);
|
return $this->belongsTo(WorkGroupMaster::class);
|
||||||
|
|||||||
@@ -35,12 +35,12 @@ class Machine extends Model
|
|||||||
|
|
||||||
public function productCharacteristicsMasters()
|
public function productCharacteristicsMasters()
|
||||||
{
|
{
|
||||||
return $this->hasMany(ProductCharacteristicsMaster::class);
|
return $this->hasMany(ProductCharacteristicsMaster::class, 'machine_id', 'id');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function characteristicValues()
|
public function characteristicValues()
|
||||||
{
|
{
|
||||||
return $this->hasMany(CharacteristicValue::class);
|
return $this->hasMany(CharacteristicValue::class, 'machine_id', 'id');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function ClassCharacteristics()
|
public function ClassCharacteristics()
|
||||||
@@ -65,12 +65,17 @@ class Machine extends Model
|
|||||||
|
|
||||||
public function testingPanelReadings()
|
public function testingPanelReadings()
|
||||||
{
|
{
|
||||||
return $this->hasMany(TestingPanelReading::class);
|
return $this->hasMany(TestingPanelReading::class, 'machine_id', 'id');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function beforeTestReadings()
|
||||||
|
{
|
||||||
|
return $this->hasMany(BeforeTestReading::class, 'machine_id', 'id');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tempClassCharacteristics()
|
public function tempClassCharacteristics()
|
||||||
{
|
{
|
||||||
return $this->hasMany(TempClassCharacteristic::class, 'plant_id', 'id');
|
return $this->hasMany(TempClassCharacteristic::class, 'machine_id', 'id');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function equipmentMasters()
|
public function equipmentMasters()
|
||||||
|
|||||||
@@ -55,11 +55,15 @@ class MotorTestingMaster extends Model
|
|||||||
public function item(): BelongsTo
|
public function item(): BelongsTo
|
||||||
{
|
{
|
||||||
return $this->belongsTo(Item::class, 'item_id', 'id');
|
return $this->belongsTo(Item::class, 'item_id', 'id');
|
||||||
// return $this->belongsTo(Item::class);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testingPanelReadings()
|
public function testingPanelReadings()
|
||||||
{
|
{
|
||||||
return $this->hasMany(TestingPanelReading::class, 'motor_testing_master_id');
|
return $this->hasMany(TestingPanelReading::class, 'motor_testing_master_id', 'id');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function beforeTestReadings()
|
||||||
|
{
|
||||||
|
return $this->hasMany(BeforeTestReading::class, 'motor_testing_master_id', 'id');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -164,9 +164,9 @@ class Plant extends Model
|
|||||||
// return $this->hasMany(ModelMaster::class, 'plant_id', 'id');
|
// return $this->hasMany(ModelMaster::class, 'plant_id', 'id');
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// public function rejectReasons()
|
// public function windedSerialValidationErrors()
|
||||||
// {
|
// {
|
||||||
// return $this->hasMany(RejectReason::class, 'plant_id', 'id');
|
// return $this->hasMany(WindedSerialValidationError::class, 'plant_id', 'id');
|
||||||
// }
|
// }
|
||||||
|
|
||||||
public function requestCharacteristics()
|
public function requestCharacteristics()
|
||||||
@@ -199,6 +199,11 @@ class Plant extends Model
|
|||||||
return $this->hasMany(LeakTestReading::class, 'plant_id', 'id');
|
return $this->hasMany(LeakTestReading::class, 'plant_id', 'id');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function beforeTestReadings()
|
||||||
|
{
|
||||||
|
return $this->hasMany(BeforeTestReading::class, 'plant_id', 'id');
|
||||||
|
}
|
||||||
|
|
||||||
public function asrsItemValidations()
|
public function asrsItemValidations()
|
||||||
{
|
{
|
||||||
return $this->hasMany(AsrsItemValidation::class, 'plant_id', 'id');
|
return $this->hasMany(AsrsItemValidation::class, 'plant_id', 'id');
|
||||||
@@ -218,6 +223,4 @@ class Plant extends Model
|
|||||||
{
|
{
|
||||||
return $this->hasMany(PanelBoxValidation::class, 'plant_id', 'id');
|
return $this->hasMany(PanelBoxValidation::class, 'plant_id', 'id');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user