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