public function newAction($attributeId)
    {
        $em = $this->getDoctrine()->getManager();

       
        /** @var Attribute $attribute */
        $attribute = $em->getRepository('EcommerceBundle:Attribute')->find($attributeId);

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

        $entity = new AttributeValue();
        $form   = $this->createForm(new AttributeValueType(), $entity);

        return array(
            'entity'      => $entity,
            'attribute'   => $attribute,
            'form'        => $form->createView(),
        );
    }