Skip to content

Commit

Permalink
Fixed relationship between users/locations because fuck you ORM
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Nov 29, 2013
1 parent 9f7cbc8 commit 1b56c31
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 @@ -62,7 +62,7 @@ public function userlog()
**/
public function userloc()
{
return $this->hasOne('Location','id')->withTrashed();
return $this->belongsTo('Location','location_id')->withTrashed();
}

}

0 comments on commit 1b56c31

Please sign in to comment.