Merge pull request 'Added leakTestReadings hasMany relationship on Plant model file' (#676) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Reviewed-on: #676
This commit was merged in pull request #676.
This commit is contained in:
@@ -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