-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unrecognized field: usernameCanonical #373
Comments
it seems like the mapping for FOSUserBundle is not found by Doctrine. Is FOSUserBundle registered propertly in your kernel ? |
Wow that's fast ! So far, my AppKernel.php look's ok ... I think:
And here's the autoloader.php :
|
Just found the solution, I was extending FOS\UserBundle\Document\User, and not FOS\UserBundle\Entity\User. Thanks for the help, and I hope this will help someone else ! |
For anyone having similar issues use app/console doctrine:mapping:info
|
Thanks. Was very useful. Helped save me hours. |
Just an additionnal info here... |
@dr1ss This is a common pitfall with APC: the CLI and the webserver are using separate APC caches |
Oh ok I thought APC clearing is not even done from the console.. good to know |
Thanks Topweb, I switched from one entity manager to two and dropped the line "auto mapping" because that's incompatible but forgot to add FOSUserBundle to the mappings, which resulted in the base FOSUser fields to be dropped. Added it back and now all is fine. |
( Note: I've read issue #351 and #230 , and I'm using Symfony 2.0.4 )
Hi !
The login form is displayed correctly, but when I try to login, I get the error
Here's my app/config/config.yml file:
My custom user entity:
My bundle file:
A few day ago, when I've followed the tutorial installation, it was working well. Since then, I've installed JMSi18nRoutingBundle, and it seem that thing doesn't work anymore. If I run doctrine:schema:update --force, I now have the following output, making me thing that their's a problem with the mapping:
Any idea ?
Ps.: Would be great to have error message that give some hint about solutions ... No trace, no file, no line, it's hard to understand at first...
Thanks
The text was updated successfully, but these errors were encountered: