function save()
{
if (isset($this->homeGoals) && isset($this->awayGoals)) {
DB::insertUpdate("fixture", array("gameweek" => $this->get_round(), "kickoff_time" => $this->get_kickoff(), "home_team" => $this->get_home_team(), "away_team" => $this->get_away_team(), "home_goals" => $this->get_home_goals(), "away_goals" => $this->get_away_goals(), "played" => $this->get_played()));
} else {
parent::save();
}
}