Merge pull request 'Added request characteristics in all model files' (#501) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Reviewed-on: #501
This commit was merged in pull request #501.
This commit is contained in:
@@ -69,6 +69,11 @@ class Item extends Model
|
|||||||
return $this->hasMany(ClassCharacteristic::class, 'item_id', 'id');
|
return $this->hasMany(ClassCharacteristic::class, 'item_id', 'id');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function requestCharacteristics()
|
||||||
|
{
|
||||||
|
return $this->hasMany(RequestCharacteristic::class, 'item_id', 'id');
|
||||||
|
}
|
||||||
|
|
||||||
public function weightValidations()
|
public function weightValidations()
|
||||||
{
|
{
|
||||||
return $this->hasMany(WeightValidation::class);
|
return $this->hasMany(WeightValidation::class);
|
||||||
|
|||||||
@@ -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 requestCharacteristics()
|
||||||
|
{
|
||||||
|
return $this->hasMany(RequestCharacteristic::class, 'machine_id', 'id');
|
||||||
|
}
|
||||||
|
|
||||||
public function testingPanelReadings()
|
public function testingPanelReadings()
|
||||||
{
|
{
|
||||||
return $this->hasMany(TestingPanelReading::class);
|
return $this->hasMany(TestingPanelReading::class);
|
||||||
|
|||||||
@@ -128,6 +128,11 @@ class Plant extends Model
|
|||||||
// return $this->hasMany(RejectReason::class, 'plant_id', 'id');
|
// return $this->hasMany(RejectReason::class, 'plant_id', 'id');
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
public function requestCharacteristics()
|
||||||
|
{
|
||||||
|
return $this->hasMany(RequestCharacteristic::class, 'plant_id', 'id');
|
||||||
|
}
|
||||||
|
|
||||||
public function users()
|
public function users()
|
||||||
{
|
{
|
||||||
return $this->hasMany(User::class, 'plant_id', 'id');
|
return $this->hasMany(User::class, 'plant_id', 'id');
|
||||||
|
|||||||
Reference in New Issue
Block a user