public function addStudentAction()
 {
     $sport_id = $_POST["Sport"];
     $achievement_id = $_POST["achievement_id"];
     $description = $_POST["description"];
     $date = $_POST["date"];
     $achievement = new Entity\Achievement();
     $achievement->setDate($date);
     $achievement->setAchievementId($achievement_id);
     $achievement->setDescription($description);
     $achievement->setSportId($sport_id);
     cont\AchievementDBaccess::saveToAchievement($achievement);
     return $this->render('applicationStudentBundle:Default:index.html.twig');
 }
 public function viewAchievementsAction()
 {
     $ach = AchievementDBaccess::getAllAchievements();
     return $this->render('applicationStudentBundle:Default:ViewAchievements.html.twig', array('ach' => $ach));
 }