Skip to content

Commit

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

public function users()
{
return $this->belongsToMany('User', 'accessories_users', 'accessory_id','assigned_to')->withTrashed();
return $this->belongsToMany('User', 'accessories_users', 'accessory_id','assigned_to')->withPivot('id')->withTrashed();
}


Expand Down

0 comments on commit 430b823

Please sign in to comment.