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