diff --git a/app/Models/Item.php b/app/Models/Item.php index bed95e2..5e80092 100644 --- a/app/Models/Item.php +++ b/app/Models/Item.php @@ -74,6 +74,11 @@ class Item extends Model return $this->hasMany(ClassCharacteristic::class, 'item_id', 'id'); } + public function windedSerialValidationErrors() + { + return $this->hasMany(WindedSerialValidationError::class, 'item_id', 'id'); + } + public function requestCharacteristics() { return $this->hasMany(RequestCharacteristic::class, 'item_id', 'id'); diff --git a/app/Models/Machine.php b/app/Models/Machine.php index 7263328..4caf091 100644 --- a/app/Models/Machine.php +++ b/app/Models/Machine.php @@ -48,6 +48,11 @@ class Machine extends Model return $this->hasMany(ClassCharacteristic::class, 'machine_id', 'id'); } + public function windedSerialValidationErrors() + { + return $this->hasMany(WindedSerialValidationError::class, 'machine_id', 'id'); + } + public function requestCharacteristics() { return $this->hasMany(RequestCharacteristic::class, 'machine_id', 'id'); diff --git a/app/Models/Plant.php b/app/Models/Plant.php index cdc6593..dbc57eb 100644 --- a/app/Models/Plant.php +++ b/app/Models/Plant.php @@ -164,10 +164,10 @@ class Plant extends Model // return $this->hasMany(ModelMaster::class, 'plant_id', 'id'); // } - // public function windedSerialValidationErrors() - // { - // return $this->hasMany(WindedSerialValidationError::class, 'plant_id', 'id'); - // } + public function windedSerialValidationErrors() + { + return $this->hasMany(WindedSerialValidationError::class, 'plant_id', 'id'); + } public function requestCharacteristics() {