Controller/UserController.php
public function newAction()
    {
        $user = new User();
        $form = $this->createForm(UserType::class, $user);

        return array(
            'user' => $user,
            'form' => $form->createView()
        );
    }
public function newAction()
    {
        $user = new User();
        $form = $this->createForm(UserType::class, $user);

        return array(
            'user' => $user,
            'form' => $form->createView()
        );
    }
Displays a form to create a new User entity.

@Route("/new", name="orkestra_user_new")
@Template()
@Secure(roles="ROLE_USER_WRITE")