/** * @return \yii\db\ActiveQuery */ public function getMatch() { return $this->hasOne(Match::className(), ['id' => 'parent_id']); }
/** * @return \yii\db\ActiveQuery */ public function getHomeMatches() { return $this->hasMany(Match::className(), ['command_home_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getMatches() { return $this->hasMany(Match::className(), ['championship_part_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getMatches() { return $this->hasMany(Match::className(), ['team_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getMatch() { return $this->hasMany(Match::className(), ['stadium_id' => 'id']); }