Le 16/06/2011 20:52, theinterned a écrit :
Hi I'm wondering about the feasibility of dropping the username and
using the email address as the username instead in FOSUserBundle. Is
this supported by the bundle? Has anyone done this themselves?

Thanks,

Ned

Doctrine does not allow to remove inherited mapping. So you cannot remove the username field in the database when extending the mapped superclass of the bundle. But if you want to use the email as username, the easy way is to overwrite the setter to set the value in both the username and the email when setting the email (or the username). And then, just overwrite the forms to avoid having both fields.

--
Christophe | Stof

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to