|
@@ -2,6 +2,7 @@
|
2
|
2
|
|
3
|
3
|
namespace Luticate\Auth\DataAccess;
|
4
|
4
|
|
|
5
|
+use Luticate\Auth\DataAccess\Models\LuticateUsers;
|
5
|
6
|
use Luticate\Utils\LuDataAccess;
|
6
|
7
|
use Luticate\Auth\DataAccess\Models\LuticateGroups;
|
7
|
8
|
use Luticate\Auth\DBO\LuticateGroupsDbo;
|
|
@@ -31,8 +32,8 @@ class LuticateGroupsDataAccess extends LuDataAccess {
|
31
|
32
|
}
|
32
|
33
|
public static function getUsers($group_id, $page = 0, $perPage = PHP_INT_MAX)
|
33
|
34
|
{
|
34
|
|
- $model = LuticateGroups::where("luticate_users_groups.group_id", "=", $group_id)
|
35
|
|
- ->join("luticate_users", "luticate_users.id", "=", "luticate_users_groups.user_id");
|
|
35
|
+ $model = LuticateUsers::where("luticate_users.id", "=", "luticate_users_groups.user_id")
|
|
36
|
+ ->join("luticate_users_groups", "luticate_users_groups.group_id", "=", $group_id);
|
36
|
37
|
|
37
|
38
|
$count = $model->count();
|
38
|
39
|
|