public function editAction($id)
    {
        $em = $this->getDoctrine()->getManager();

        /** @var Feature $entity */
        $entity = $em->getRepository('EcommerceBundle:Tax')->find($id);

        if (!$entity) {
            throw $this->createNotFoundException('Unable to find Tax entity.');
        }

        $editForm = $this->createForm(new TaxType(), $entity);
        $deleteForm = $this->createDeleteForm($id);

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