Skip to content

Commit

Permalink
Dev: UserInGroup relation didn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
lacrioque committed Dec 4, 2018
1 parent 02500b8 commit 3af820e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/models/UserInGroup.php
Expand Up @@ -52,8 +52,8 @@ public function relations()
// class name for the relations automatically generated below.
return array(
// TODO should be singular
'users' => array(self::BELONGS_TO, 'User', '', 'on' => 't.uid = users.uid'),
'group' => array(self::BELONGS_TO, 'UserGroup', '', 'on' => 't.ugid = group.uid'),
'users' => array(self::BELONGS_TO, 'User', 'uid'),
'group' => array(self::BELONGS_TO, 'UserGroup', 'ugid'),
);
}

Expand Down

0 comments on commit 3af820e

Please sign in to comment.