public function newAction(Request $request)
    {
        $entity = new Episode();
        $form   = $this->createCreateForm($entity);

        return [
            'entity' => $entity,
            'form'   => $form->createView(),
        ];
    }
public function newAction(Request $request)
    {
        $entity = new Episode();
        $form   = $this->createCreateForm($entity);

        return [
            'entity' => $entity,
            'form'   => $form->createView(),
        ];
    }
public function newAction ( Request $ request ) { $ entity = new Episode ( ) ; $ form = $ this -> createCreateForm ( $ entity ) ; return [ 'entity' => $ entity , 'form' => $ form -> createView ( ) , ] ; }
Displays a form to create a new Episode entity.

@Route("/new", name="oktolab_episode_new")
@Method("GET")
@Template()
Displays a form to create a new Episode entity .