I just have updated my app from PR12 to Beta1. I use FOSUserBundle for
user management & login. Now when i try to log in i get an error
message "Unrecognized field: usernameCanonical".

Looking at the output of doctrine:schema:update --dump-sql I see that
all attributes from user are in the line to be removed:

ALTER TABLE user DROP username, DROP username_canonical, DROP
email_canonical, DROP email, DROP enabled, DROP algorithm, DROP salt,
DROP password, DROP created_at, DROP updated_at, DROP last_login, DROP
locked, DROP expired, DROP expires_at, DROP confirmation_token, DROP
roles, DROP credentials_expired, DROP credentials_expire_at, DROP
password_requested_at;

I use Annotations in my User class while the FOSUserBundle uses XML
mapping  - so I tried creating annotations in the FOSUserBundles User
class and then the columns are found and no longer scheduled for
deletion. Digging deeper I changed my mapping configuration to

<doctrine:mapping name="FOSUserBundle" type="xml" dir="Resources/
config/doctrine/metadata" />

however this still did not fix the issue.

Any ideas what causes this problem?


-- 
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