public function mantCargarInventarioDetAction($invDetId)
 {
     $opciones = $this->getRequest()->getSession()->get('opciones');
     $user = $this->get('security.context')->getToken()->getUser();
     $inventarioDetDao = new InventarioDetDao($this->getDoctrine());
     $inventarioDet = $inventarioDetDao->getInventarioDet($invDetId);
     if (!$inventarioDet) {
         $inventarioDet = new InventarioDet();
         $inventarioDet->setInvDetComentario('Inventario Inicial');
     }
     $form = $this->createForm(new InventarioDetType($this->getDoctrine()), $inventarioDet);
     return $this->render('MinSalSCAProcesosBundle:InventarioDet:showInventarioDet.html.twig', array('form' => $form->createView(), 'opciones' => $opciones, 'invDetId' => $invDetId, 'entNombComercial' => $user->getEntidad()->getEntNombComercial()));
 }