public static function destroy($id)
 {
     self::check_logged_in();
     $catch = new CatchModel(array('catch_id' => $id));
     $catch->destroy();
     Redirect::to('/catchList', array('message' => "Saalistieto poistettiin onnistuneesti."));
 }
 public static function sandbox()
 {
     // Testaa koodiasi täällä
     //$catch_1 = CatchModel::find(1);
     $catch = new CatchModel(array('kalalaji' => "lahna", 'lkm' => '0', 'vedenLampo' => '-3'));
     $errors = $catch->errors();
     Kint::dump($errors);
 }