protected function save(Model_Match $match, $post) { //Saving match $match->date = date('Y-m-d H:i:s'); $match->player_1_id = $post['player_1_id']; $match->player_2_id = $post['player_2_id']; $match->player_1_score = $post['player_1_score']; $match->player_1_team = $post['player_1_team']; $match->player_2_score = $post['player_2_score']; $match->player_2_team = $post['player_2_team']; $match->save(); $this->save_player_results($match, $post); }