public function attributeFormAction()
    {
        $repository = $this->getDoctrine()
            ->getRepository('SuluProductBundle:AttributeType');
        $types = $repository->findAll();

        $attributeTypes = [];
        foreach ($types as $type) {
            $attributeTypes[] = [
                'id' => $type->getId(),
                'name' => $type->getName(),
            ];
        }

        return $this->render(
            'SuluProductBundle:Template:attribute.form.html.twig',
            [
                'attribute_types' => $attributeTypes,
            ]
        );
    }