FriendsOfSymfony/FOSUserBundle — Issue #546: overring controller, my function not work,newbie question
Author: Raulken
Created: 2012-02-21 17:57:37+00:00
State: open

i try to set for name surname, with the first charater upper, but not work
if ($process) {
$user = $form->getData();

//Sistemo le stringhe
$user->setName(ucfirst(strtolower($user->getName())));
$user->setSurname(ucfirst(strtolower($user->getSurname())));
$user->setEmail(strtolower($user->getEmail()));
/*****************************************************
* Add new functionality (e.g. log the registration) *
*****************************************************/

if i print $user->setName(ucfirst(strtolower($user->getName()))); give me correctly "Example" with first in upper
someone can help me please?