Added leakTestReadings hasMany relationship on Plant model file #676
@@ -168,6 +168,12 @@ class Plant extends Model
|
|||||||
{
|
{
|
||||||
return $this->hasMany(VehicleEntry::class, 'plant_id', 'id');
|
return $this->hasMany(VehicleEntry::class, 'plant_id', 'id');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function leakTestReadings()
|
||||||
|
{
|
||||||
|
return $this->hasMany(LeakTestReading::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');
|
||||||
|
|||||||
Reference in New Issue
Block a user