Example #1
0
 public function getMapedUsers()
 {
     return $this->hasMany(UserGroup::className(), ['groupId' => 'Id']);
 }
 public function getUsersGroup()
 {
     return $this->usergroupsDP = new ActiveDataProvider(['query' => UserGroup::find()->where(['userId' => $this->Id])]);
 }