Added model masters model files for hasMany relations
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 14s

This commit is contained in:
dhanabalan
2026-09-05 10:29:20 +05:30
parent 107b3a983e
commit f6f73edb5f
2 changed files with 9 additions and 4 deletions

View File

@@ -48,6 +48,11 @@ class Machine extends Model
return $this->hasMany(ClassCharacteristic::class, 'machine_id', 'id');
}
public function ModelMasters()
{
return $this->hasMany(ModelMaster::class, 'machine_id', 'id');
}
public function windedSerialValidationErrors()
{
return $this->hasMany(WindedSerialValidationError::class, 'machine_id', 'id');

View File

@@ -164,10 +164,10 @@ class Plant extends Model
return $this->hasMany(ClassCharacteristic::class, 'plant_id', 'id');
}
// public function ModelMasters()
// {
// return $this->hasMany(ModelMaster::class, 'plant_id', 'id');
// }
public function ModelMasters()
{
return $this->hasMany(ModelMaster::class, 'plant_id', 'id');
}
public function windedSerialValidationErrors()
{