original_string: public function createAction(Request $request)
      {
          $productitemfielddata = new ProductItemFieldData();
          $form = $this->createForm($this->get("amulen.shop.form.product.item.field.data"), $productitemfielddata);
          if ($form->handleRequest($request)->isValid()) {
              $em = $this->getDoctrine()->getManager();
              $em->persist($productitemfielddata);
              $em->flush();
  
              return $this->redirect($this->generateUrl('admin_productitemfielddata_show', array('id' => $productitemfielddata->getId())));
          }
  
          return array(
              'productitemfielddata' => $productitemfielddata,
              'form' => $form->createView(),
          );
      }
code: public function createAction(Request $request)
      {
          $productitemfielddata = new ProductItemFieldData();
          $form = $this->createForm($this->get("amulen.shop.form.product.item.field.data"), $productitemfielddata);
          if ($form->handleRequest($request)->isValid()) {
              $em = $this->getDoctrine()->getManager();
              $em->persist($productitemfielddata);
              $em->flush();
  
              return $this->redirect($this->generateUrl('admin_productitemfielddata_show', array('id' => $productitemfielddata->getId())));
          }
  
          return array(
              'productitemfielddata' => $productitemfielddata,
              'form' => $form->createView(),
          );
      }
code_tokens: public function createAction ( Request $ request ) { $ productitemfielddata = new ProductItemFieldData ( ) ; $ form = $ this -> createForm ( $ this -> get ( "amulen.shop.form.product.item.field.data" ) , $ productitemfielddata ) ; if ( $ form -> handleRequest ( $ request ) -> isValid ( ) ) { $ em = $ this -> getDoctrine ( ) -> getManager ( ) ; $ em -> persist ( $ productitemfielddata ) ; $ em -> flush ( ) ; return $ this -> redirect ( $ this -> generateUrl ( 'admin_productitemfielddata_show' , array ( 'id' => $ productitemfielddata -> getId ( ) ) ) ) ; } return array ( 'productitemfielddata' => $ productitemfielddata , 'form' => $ form -> createView ( ) , ) ; }
docstring: Creates a new ProductItemFieldData entity.
  
  @Route("/create", name="admin_productitemfielddata_create")
  @Method("POST")
  @Template("AmulenShopBundle:ProductItemFieldData:new.html.twig")
docstring_tokens: Creates a new ProductItemFieldData entity .