mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Added plural relationship
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
4e3379d5ae
commit
0c2bed605f
|
@ -39,7 +39,12 @@ class AccessoryCheckout extends Model
|
|||
*/
|
||||
public function accessory()
|
||||
{
|
||||
return $this->hasOne(Accessory::class, 'accessory_id');
|
||||
return $this->hasOne(Accessory::class, 'id', 'accessory_id');
|
||||
}
|
||||
|
||||
public function accessories()
|
||||
{
|
||||
return $this->hasMany(Accessory::class, 'id', 'accessory_id');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue