From db3a69d47f5ece46f17d29c4c3d2f4a848a9b10d Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Mon, 15 Sep 2025 12:18:41 +0530 Subject: [PATCH] Add workGroupMasters hasMany relationship to Plant model and comment out rejectReasons method --- app/Models/Plant.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/Models/Plant.php b/app/Models/Plant.php index 926072e5c..0bdc1535e 100644 --- a/app/Models/Plant.php +++ b/app/Models/Plant.php @@ -82,4 +82,14 @@ class Plant extends Model { return $this->hasMany(GuardPatrolEntry::class, 'plant_id', 'id'); } + + public function workGroupMasters() + { + return $this->hasMany(WorkGroupMaster::class, 'plant_id', 'id'); + } + + // public function rejectReasons() + // { + // return $this->hasMany(RejectReason::class, 'plant_id', 'id'); + // } }