FriendsOfSymfony/FOSUserBundle — Issue #557: problem when save user in registration
Author: volpoli
Created: 2012-02-29 16:36:47+00:00
State: open

Hi,
when save user with username or email field bank got this error message:

"Could not convert database value "" to Doctrine Type array
500 Internal Server Error - ConversionException"

static public function conversionFailed($value, $toType)
{
$value = (strlen($value) > 32) ? substr($value, 0, 20) . "..." : $value;
return new self('Could not convert database value "' . $value . '" to Doctrine Type ' . $toType);
}

/**

at ConversionException ::conversionFailed ('', 'array')
in /var/www/ilmioambulatorio_it/vendor/doctrine-dbal/lib/Doctrine/DBAL/Types/ArrayType.php at line 48 -+
at ArrayType ->convertToPHPValue ('', object(MySqlPlatform))
in /var/www/ilmioambulatorio_it/vendor/doctrine/lib/Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator.php at line 85 -
................

????????

Constraints notBlank seems won't work.
The class User is extended, the bundle is extended for override templates and controller easly.