Commit 745de6ee authored by Nicolas Widart's avatar Nicolas Widart

Setting a foreignkey

parent 5753497d
......@@ -16,4 +16,9 @@ class SentryUser extends User
];
protected $presenter = 'Modules\User\Presenters\UserPresenter';
public function groups()
{
return $this->belongsToMany(static::$groupModel, static::$userGroupsPivot, 'user_id');
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment