Fixed relationship between users/locations because fuck you ORM

This commit is contained in:
snipe
2013-11-28 19:58:16 -05:00
parent 9f7cbc8a4f
commit 1b56c31a22
+1 -1
View File
@@ -62,7 +62,7 @@ class User extends SentryUserModel {
**/
public function userloc()
{
return $this->hasOne('Location','id')->withTrashed();
return $this->belongsTo('Location','location_id')->withTrashed();
}
}