Added hasMany relations for guard patrol entry
This commit is contained in:
@@ -62,4 +62,24 @@ class Plant extends Model
|
|||||||
{
|
{
|
||||||
return $this->hasMany(TestingPanelReading::class);
|
return $this->hasMany(TestingPanelReading::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function guardNames()
|
||||||
|
{
|
||||||
|
return $this->hasMany(GuardName::class, 'plant_id', 'id');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function checkPointNames()
|
||||||
|
{
|
||||||
|
return $this->hasMany(CheckPointName::class, 'plant_id', 'id');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function checkPointTimes()
|
||||||
|
{
|
||||||
|
return $this->hasMany(CheckPointTime::class, 'plant_id', 'id');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function guardPatrolEntries()
|
||||||
|
{
|
||||||
|
return $this->hasMany(GuardPatrolEntry::class, 'plant_id', 'id');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user