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:
@@ -35,12 +35,12 @@ class Machine extends Model
|
||||
|
||||
public function productCharacteristicsMasters()
|
||||
{
|
||||
return $this->hasMany(ProductCharacteristicsMaster::class);
|
||||
return $this->hasMany(ProductCharacteristicsMaster::class, 'machine_id', 'id');
|
||||
}
|
||||
|
||||
public function characteristicValues()
|
||||
{
|
||||
return $this->hasMany(CharacteristicValue::class);
|
||||
return $this->hasMany(CharacteristicValue::class, 'machine_id', 'id');
|
||||
}
|
||||
|
||||
public function ClassCharacteristics()
|
||||
@@ -65,12 +65,17 @@ class Machine extends Model
|
||||
|
||||
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()
|
||||
{
|
||||
return $this->hasMany(TempClassCharacteristic::class, 'plant_id', 'id');
|
||||
return $this->hasMany(TempClassCharacteristic::class, 'machine_id', 'id');
|
||||
}
|
||||
|
||||
public function equipmentMasters()
|
||||
|
||||
Reference in New Issue
Block a user