diff --git a/app/models/User.php b/app/models/User.php index 5a3311c266..27b23bdb62 100755 --- a/app/models/User.php +++ b/app/models/User.php @@ -62,7 +62,7 @@ class User extends SentryUserModel { **/ public function userloc() { - return $this->hasOne('Location','id')->withTrashed(); + return $this->belongsTo('Location','location_id')->withTrashed(); } }