Skip to content

Commit

Permalink
Fixed accessory relationship
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Feb 26, 2015
1 parent efaf067 commit 5010720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function assets()

public function accessories()
{
return $this->belongsToMany('Accessories', 'accessories_users', 'assigned_to')->withTrashed();
return $this->belongsToMany('Accessories', 'accessories_users', 'accessory_id', 'assigned_to')->withTrashed();
}

public function licenses()
Expand Down

0 comments on commit 5010720

Please sign in to comment.