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