Fixed relationship between users/locations because fuck you ORM
This commit is contained in:
+1
-1
@@ -62,7 +62,7 @@ class User extends SentryUserModel {
|
||||
**/
|
||||
public function userloc()
|
||||
{
|
||||
return $this->hasOne('Location','id')->withTrashed();
|
||||
return $this->belongsTo('Location','location_id')->withTrashed();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user