public function addNewEquipmentSaveAction()
 {
     $eqpm = new en\equipment();
     $eqpm->setEquipmentName($_POST["equipmentName"]);
     $eqpm->setDate($_POST["date"]);
     echo $eqpm->getDate();
     $eqpm->setQuantity($_POST["quantity"]);
     $eqpm->setResourceId($_POST["resourceId"]);
     $rs = new en\resource();
     $rs->setResourceId($_POST["resourceId"]);
     $rs->setSupplierId($_POST["supplierId"]);
     $added = cont\EquipmentDBacess::saveToEquipment($eqpm, $rs);
     if ($added) {
         return $this->render('applicationequipmentBundle:Forms:addedSuccessfullyMessage.html.twig');
     } else {
         echo "not added";
         return $this->render('applicationMainBundle:Default:index.html.twig');
     }
 }
 public function viewAllEquipmentsAction()
 {
     $eqps = cont\EquipmentDBacess::getAllEquipments();
     return $this->render('applicationequipmentBundle:Default:viewAllResources.html.twig', array('s' => $eqps));
 }