コード例 #1
0
ファイル: Group.php プロジェクト: mithun12000/yii2-usermanage
 public function getMapedUsers()
 {
     return $this->hasMany(UserGroup::className(), ['groupId' => 'Id']);
 }
コード例 #2
0
 public function getUsersGroup()
 {
     return $this->usergroupsDP = new ActiveDataProvider(['query' => UserGroup::find()->where(['userId' => $this->Id])]);
 }