Controller/Api/Resource/BaseResourceController.php
protected function getProcessedForm(Request $request, $action = 'POST', $resource = array(), $options = array())
    {
        $formType = $this->getResourceFormType($action, $resource, $options);

        $formBuilder = $this->createFormBuilder($resource, $options);

        $formType->configureFormBuilder($formBuilder, $options);

        $form = $formBuilder->getForm();

        $form->handleRequest($request);

        $formType->validateForm($form);

        return $form;
    }
protected function getProcessedForm(Request $request, $action = 'POST', $resource = array(), $options = array())
    {
        $formType = $this->getResourceFormType($action, $resource, $options);

        $formBuilder = $this->createFormBuilder($resource, $options);

        $formType->configureFormBuilder($formBuilder, $options);

        $form = $formBuilder->getForm();

        $form->handleRequest($request);

        $formType->validateForm($form);

        return $form;
    }
protected function getProcessedForm ( Request $ request , $ action = 'POST' , $ resource = array ( ) , $ options = array ( ) ) { $ formType = $ this -> getResourceFormType ( $ action , $ resource , $ options ) ; $ formBuilder = $ this -> createFormBuilder ( $ resource , $ options ) ; $ formType -> configureFormBuilder ( $ formBuilder , $ options ) ; $ form = $ formBuilder -> getForm ( ) ; $ form -> handleRequest ( $ request ) ; $ formType -> validateForm ( $ form ) ; return $ form ; }
Get a processed and validated form

@param Request $request
@param string $action
@param array $resource
@param array $options
@return \Symfony\Component\Form\Form
Get a processed and validated form