/** * @return \yii\db\ActiveQuery */ public function getIdGame() { return $this->hasOne(Games::className(), ['id_game' => 'id_game']); }
/** * @return \yii\db\ActiveQuery */ public function getGames() { return $this->hasMany(Games::className(), ['id_team_home' => 'id']); }