|
@@ -31,8 +31,8 @@ class LuticateGroupsDataAccess extends LuDataAccess {
|
31
|
31
|
}
|
32
|
32
|
public static function getUsers($group_id, $page = 0, $perPage = PHP_INT_MAX)
|
33
|
33
|
{
|
34
|
|
- $model = LuticateGroups::where("luticate_groups.group_id", "=", $group_id)
|
35
|
|
- ->join("luticate_users", "luticate_users.id", "=", "luticate_groups.user_id");
|
|
34
|
+ $model = LuticateGroups::where("luticate_users_groups.group_id", "=", $group_id)
|
|
35
|
+ ->join("luticate_users", "luticate_users.id", "=", "luticate_users_groups.user_id");
|
36
|
36
|
|
37
|
37
|
$count = $model->count();
|
38
|
38
|
|