-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Doctrine configuration - Doctrine can't find annotation #22670
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
Comments
As far as I know, system_user is an alias and hence a reserved word for user: |
This only makes sense when you use Annotations outside of Doctrine ORM, the DoctrineBundle already enables them. Are you using something like APC/Opcache? Try clearing the cache, bootstrap.php.cache, and make sure you use the correct autoload.php in web/app_{dev}.php
|
It wasn't fault by cache. It is because the app_dev.php indicate at autoload.php from vendor not from app folder. line 22: Is that a bug? I don't know but it resolve my issue. Thanks a lot! |
@mikaelit No it's not a bug, the master branch of symfony-standard is focused on Symfony 3.3 which removed the need for the autoload.php file 👍 Annotations loader is now automatically enabled #21837 and https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php#L670 |
@mikaelit : If everything regarding your issue is solved you can close this :) |
I described my issue hear: http://stackoverflow.com/questions/43794498/symfony-how-to-solve-the-doctrine-issue-of-the-missing-annotations/43825184#43825184
I think it's locale problem, but I can't find solution.
The text was updated successfully, but these errors were encountered: