/** * @return \yii\db\ActiveQuery */ public function getChatGroupUsers() { return $this->hasMany(ChatGroupUser::className(), ['group_id' => 'id']); }