Controller/ProfileController.php
public function editAction()
    {
        $user = $this->getUser();
        $form = $this->createForm(ProfileType::class, $user);

        return array(
            'form' => $form->createView(),
        );
    }
public function editAction()
    {
        $user = $this->getUser();
        $form = $this->createForm(ProfileType::class, $user);

        return array(
            'form' => $form->createView(),
        );
    }
public function editAction ( ) { $ user = $ this -> getUser ( ) ; $ form = $ this -> createForm ( ProfileType :: class , $ user ) ; return array ( 'form' => $ form -> createView ( ) , ) ; }
Shows the form  to edit the current user's profile

@Route("/edit", name="orkestra_profile_edit")
@Secure(roles="ROLE_USER")
@Template()
Shows the form to edit the current user s profile