Esempio n. 1
0
 public function saveAction(Request $request)
 {
     $user = new User();
     $user->load($request->getSession()->get('userId'));
     $data = $request->request->all();
     $user->setName($data['name']);
     $user->setSecondName($data['second_name']);
     $user->setPhoto($data['photo']);
     $user->setEmail($data['email']);
     $user->save();
     return new Response();
 }