public function editAction(Request $request, Located $located)
    {
        
        $deleteForm = $this->createDeleteForm($located);
        $editForm = $this->createForm('EcommerceBundle\Form\LocatedType', $located, array(
            'action' => $this->generateUrl('ecommerce_located_edit', array('id' => $located->getId())),
            'method' => 'POST',
        ));
        $editForm->handleRequest($request);

        if ($editForm->isSubmitted() && $editForm->isValid()) {
            $em = $this->getDoctrine()->getManager();
            
            $em->persist($located);
            $em->flush();
            
            $this->get('session')->getFlashBag()->add('success', 'located.edited');
            
            return $this->redirectToRoute('ecommerce_located_show', array('id' => $located->getId()));
        }

        return array(
            'entity' => $located,
            'edit_form' => $editForm->createView(),
            'delete_form' => $deleteForm->createView(),
        );
    }