Example #1
0
 /**
  * Inserts or updates Game entry.
  *
  * @param GameModel $model
  */
 public function save(GamesModel $model)
 {
     $fields = array('war_id' => $model->getWarId(), 'map' => $model->getMap(), 'group_pionts' => $model->getGroupPoints(), 'enemy_pionts' => $model->getEnemyPoints());
     $this->db()->insert('war_played')->values($fields)->execute();
 }