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
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 14s
This commit is contained in:
@@ -48,6 +48,11 @@ class Machine extends Model
|
|||||||
return $this->hasMany(ClassCharacteristic::class, 'machine_id', 'id');
|
return $this->hasMany(ClassCharacteristic::class, 'machine_id', 'id');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function ModelMasters()
|
||||||
|
{
|
||||||
|
return $this->hasMany(ModelMaster::class, 'machine_id', 'id');
|
||||||
|
}
|
||||||
|
|
||||||
public function windedSerialValidationErrors()
|
public function windedSerialValidationErrors()
|
||||||
{
|
{
|
||||||
return $this->hasMany(WindedSerialValidationError::class, 'machine_id', 'id');
|
return $this->hasMany(WindedSerialValidationError::class, 'machine_id', 'id');
|
||||||
|
|||||||
@@ -164,10 +164,10 @@ class Plant extends Model
|
|||||||
return $this->hasMany(ClassCharacteristic::class, 'plant_id', 'id');
|
return $this->hasMany(ClassCharacteristic::class, 'plant_id', 'id');
|
||||||
}
|
}
|
||||||
|
|
||||||
// public function ModelMasters()
|
public function ModelMasters()
|
||||||
// {
|
{
|
||||||
// return $this->hasMany(ModelMaster::class, 'plant_id', 'id');
|
return $this->hasMany(ModelMaster::class, 'plant_id', 'id');
|
||||||
// }
|
}
|
||||||
|
|
||||||
public function windedSerialValidationErrors()
|
public function windedSerialValidationErrors()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user