Browse Source

group get users

tags/0.1.0
Robin Thoni 9 years ago
parent
commit
82cae38b44
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/Auth/DataAccess/LuticateGroupsDataAccess.php

+ 2
- 2
src/Auth/DataAccess/LuticateGroupsDataAccess.php View File

@@ -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
 

Loading…
Cancel
Save