mirror of
https://github.com/snipe/snipe-it.git
synced 2026-02-04 21:05:23 +00:00
Merge remote-tracking branch 'origin/develop'
This commit is contained in:
@ -189,7 +189,7 @@ class PredefinedKit extends SnipeModel
|
||||
*/
|
||||
public function accessories()
|
||||
{
|
||||
return $this->hasMany(\App\Models\Accessory::class, 'accessory_id', 'kit_id')->withPivot('id', 'quantity');
|
||||
return $this->belongsToMany(\App\Models\Accessory::class, 'kits_accessories', 'kit_id', 'accessory_id')->withPivot('id', 'quantity');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user