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