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