Added pump testing result model files for hasMany relations
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 11s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 11s
This commit is contained in:
@@ -94,6 +94,11 @@ class Plant extends Model
|
|||||||
return $this->hasMany(PumpTestingEntry::class, 'plant_id', 'id');
|
return $this->hasMany(PumpTestingEntry::class, 'plant_id', 'id');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function pumpTestingResults()
|
||||||
|
{
|
||||||
|
return $this->hasMany(PumpTestingResult::class, 'plant_id', 'id');
|
||||||
|
}
|
||||||
|
|
||||||
public function guardNames()
|
public function guardNames()
|
||||||
{
|
{
|
||||||
return $this->hasMany(GuardName::class, 'plant_id', 'id');
|
return $this->hasMany(GuardName::class, 'plant_id', 'id');
|
||||||
|
|||||||
@@ -59,4 +59,9 @@ class PumpTestingMaster extends Model
|
|||||||
{
|
{
|
||||||
return $this->hasMany(PumpTestingEntry::class, 'pump_testing_master_id', 'id');
|
return $this->hasMany(PumpTestingEntry::class, 'pump_testing_master_id', 'id');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function pumpTestingResults()
|
||||||
|
{
|
||||||
|
return $this->hasMany(PumpTestingResult::class, 'pump_testing_master_id', 'id');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user