Controller/EpisodeController.php
private function createEditForm(Episode $entity)
    {
        $form = $this->createForm(
            new EpisodeType(),
            $entity,
            [
                'action' => $this->generateUrl(
                    'oktolab_episode_update',
                    ['id' => $entity->getId()]
                ),
                'method' => 'POST'
            ]
        );

        $form->add(
            'submit',
            'submit',
            ['label' => 'oktolab_media.edit_episode_button']
        );

        return $form;
    }
private function createEditForm(Episode $entity)
    {
        $form = $this->createForm(
            new EpisodeType(),
            $entity,
            [
                'action' => $this->generateUrl(
                    'oktolab_episode_update',
                    ['id' => $entity->getId()]
                ),
                'method' => 'POST'
            ]
        );

        $form->add(
            'submit',
            'submit',
            ['label' => 'oktolab_media.edit_episode_button']
        );

        return $form;
    }
private function createEditForm ( Episode $ entity ) { $ form = $ this -> createForm ( new EpisodeType ( ) , $ entity , [ 'action' => $ this -> generateUrl ( 'oktolab_episode_update' , [ 'id' => $ entity -> getId ( ) ] ) , 'method' => 'POST' ] ) ; $ form -> add ( 'submit' , 'submit' , [ 'label' => 'oktolab_media.edit_episode_button' ] ) ; return $ form ; }
Creates a form to edit a Episode entity.

@param Episode $entity The entity

@return \Symfony\Component\Form\Form The form
Creates a form to edit a Episode entity .