/** * Attempts to destroy selected round. * * @param int $id Id of round to be deleted. */ public static function destroy($id) { $round = new Round(array('id' => $id)); $round->destroy(); Redirect::to('/round', array('message' => 'Kierros poistettu.')); }