From 1b56c31a22afd39a875677714b9c07e96876b8df Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 28 Nov 2013 19:58:16 -0500 Subject: [PATCH] Fixed relationship between users/locations because fuck you ORM --- app/models/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } }