Bundle/BusinessPageBundle/Controller/BusinessTemplateController.php
private function createCreateForm(BusinessTemplate $view)
    {
        $id = $view->getBusinessEntityId();

        $businessProperties = $this->getBusinessProperties($view);
        $form = $this->createForm(
            BusinessTemplateType::class,
            $view,
            [
                'action'                  => $this->generateUrl('victoire_business_template_create', ['id' => $id]),
                'method'                  => 'POST',
                'vic_business_properties' => $businessProperties,
            ]
        );

        return $form;
    }
private function createCreateForm(BusinessTemplate $view)
    {
        $id = $view->getBusinessEntityId();

        $businessProperties = $this->getBusinessProperties($view);
        $form = $this->createForm(
            BusinessTemplateType::class,
            $view,
            [
                'action'                  => $this->generateUrl('victoire_business_template_create', ['id' => $id]),
                'method'                  => 'POST',
                'vic_business_properties' => $businessProperties,
            ]
        );

        return $form;
    }
private function createCreateForm ( BusinessTemplate $ view ) { $ id = $ view -> getBusinessEntityId ( ) ; $ businessProperties = $ this -> getBusinessProperties ( $ view ) ; $ form = $ this -> createForm ( BusinessTemplateType :: class , $ view , [ 'action' => $ this -> generateUrl ( 'victoire_business_template_create' , [ 'id' => $ id ] ) , 'method' => 'POST' , 'vic_business_properties' => $ businessProperties , ] ) ; return $ form ; }
Creates a form to create a BusinessTemplate entity.

@param BusinessTemplate $view The entity

@throws \Exception

@return \Symfony\Component\Form\Form The form
@return Form
Creates a form to create a BusinessTemplate entity .