public function indexAction()
 {
     //$sportList=SportDBaccess::getAllSports();
     $eqList = formController::getAllEqupiments();
     $locationList = LocationDBaccess::getAllLocations();
     $lastId = StudentRequestDBaccess::getLastStudentID();
     return $this->render('applicationStudentBundle:Default:StudentRequest.html.twig', array('lastId' => $lastId, 'eqList' => $eqList, 'locationList' => $locationList));
 }
 public function saveLocationAction()
 {
     $eqpm = new en\Location();
     $rs = new en\resource();
     $eqpm->setResourceId($_POST["resource_id"]);
     $eqpm->setType($_POST["locationtype"]);
     $eqpm->setSession($_POST["sessionlimit"]);
     $eqpm->setName($_POST["locationName"]);
     $rs->setResourceId($_POST["resource_id"]);
     $rs->setSupplierId($_POST["supplier_id"]);
     cont\ResourceDBaccess::addResource($rs);
     cont\LocationDBaccess::addLocation($eqpm);
     return $this->render('applicationLocationsBundle:Default:index.html.twig');
 }