Added pump testing master model files for hasMany relations
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 11s

This commit is contained in:
dhanabalan
2026-08-24 10:09:11 +05:30
parent f653c39c1e
commit e4dc7560b3
2 changed files with 9 additions and 4 deletions

View File

@@ -49,6 +49,11 @@ class Item extends Model
return $this->hasMany(TestingPanelReading::class);
}
public function pumpTestingMasters()
{
return $this->hasMany(PumpTestingMaster::class, 'item_id', 'id');
}
public function processOrders()
{
return $this->hasMany(ProcessOrder::class);

View File

@@ -84,10 +84,10 @@ class Plant extends Model
return $this->hasMany(TestingPanelReading::class, 'plant_id', 'id');
}
// public function pumpTestingMasters()
// {
// return $this->hasMany(PumpTestingMaster::class, 'plant_id', 'id');
// }
public function pumpTestingMasters()
{
return $this->hasMany(PumpTestingMaster::class, 'plant_id', 'id');
}
// public function pumpTestingEntries()
// {