src/Kunstmaan/FormBundle/Controller/FormSubmissionsController.php
public function editAction($nodeTranslationId, $submissionId)
    {
        $em = $this->getDoctrine()->getManager();
        $nodeTranslation = $em->getRepository('KunstmaanNodeBundle:NodeTranslation')->find($nodeTranslationId);
        $formSubmission = $em->getRepository('KunstmaanFormBundle:FormSubmission')->find($submissionId);
        $request = $this->container->get('request_stack')->getCurrentRequest();
        $deletableFormsubmission = $this->getParameter('kunstmaan_form.deletable_formsubmissions');

        /** @var AdminList $adminList */
        $adminList = $this->get('kunstmaan_adminlist.factory')->createList(
            new FormSubmissionAdminListConfigurator($em, $nodeTranslation, $deletableFormsubmission),
            $em
        );
        $adminList->bindRequest($request);

        return [
            'nodetranslation' => $nodeTranslation,
            'formsubmission' => $formSubmission,
            'adminlist' => $adminList,
        ];
    }
public function editAction($nodeTranslationId, $submissionId)
    {
        $em = $this->getDoctrine()->getManager();
        $nodeTranslation = $em->getRepository('KunstmaanNodeBundle:NodeTranslation')->find($nodeTranslationId);
        $formSubmission = $em->getRepository('KunstmaanFormBundle:FormSubmission')->find($submissionId);
        $request = $this->container->get('request_stack')->getCurrentRequest();
        $deletableFormsubmission = $this->getParameter('kunstmaan_form.deletable_formsubmissions');

        /** @var AdminList $adminList */
        $adminList = $this->get('kunstmaan_adminlist.factory')->createList(
            new FormSubmissionAdminListConfigurator($em, $nodeTranslation, $deletableFormsubmission),
            $em
        );
        $adminList->bindRequest($request);

        return [
            'nodetranslation' => $nodeTranslation,
            'formsubmission' => $formSubmission,
            'adminlist' => $adminList,
        ];
    }
public function editAction ( $ nodeTranslationId , $ submissionId ) { $ em = $ this -> getDoctrine ( ) -> getManager ( ) ; $ nodeTranslation = $ em -> getRepository ( 'KunstmaanNodeBundle:NodeTranslation' ) -> find ( $ nodeTranslationId ) ; $ formSubmission = $ em -> getRepository ( 'KunstmaanFormBundle:FormSubmission' ) -> find ( $ submissionId ) ; $ request = $ this -> container -> get ( 'request_stack' ) -> getCurrentRequest ( ) ; $ deletableFormsubmission = $ this -> getParameter ( 'kunstmaan_form.deletable_formsubmissions' ) ; /** @var AdminList $adminList */ $ adminList = $ this -> get ( 'kunstmaan_adminlist.factory' ) -> createList ( new FormSubmissionAdminListConfigurator ( $ em , $ nodeTranslation , $ deletableFormsubmission ) , $ em ) ; $ adminList -> bindRequest ( $ request ) ; return [ 'nodetranslation' => $ nodeTranslation , 'formsubmission' => $ formSubmission , 'adminlist' => $ adminList , ] ; }
The edit action will be used to edit a given submission.

@param int $nodeTranslationId The node translation id
@param int $submissionId      The submission id

@Route("/list/{nodeTranslationId}/{submissionId}", requirements={"nodeTranslationId" = "\d+", "submissionId" =
"\d+"}, name="KunstmaanFormBundle_formsubmissions_list_edit", methods={"GET", "POST"})
@Template("@KunstmaanForm/FormSubmissions/edit.html.twig")

@return array
The edit action will be used to edit a given submission .