8000 Doctrine configuration - Doctrine can't find annotation · Issue #22670 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

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

Closed
mikaelit opened this issue May 8, 2017 · 5 comments
Closed

Doctrine configuration - Doctrine can't find annotation #22670

mikaelit opened this issue May 8, 2017 · 5 comments

Comments

@mikaelit
Copy link
mikaelit commented May 8, 2017
Q A
Bug report? yes/no
Feature request? no
BC Break report? no
RFC? no
Symfony version 2.8.20

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.

@sh4ka
Copy link
sh4ka commented May 8, 2017

As far as I know, system_user is an alias and hence a reserved word for user:
https://dev.mysql.com/doc/refman/5.7/en/information-functions.html
I have not tested this but I think this is the problem.

@sstok
Copy link
Contributor
sstok commented May 8, 2017

try to add framework: validation: { enable_annotations: true } in your app/config/config.yml – Sylvain Attoumani May 5 at 8:17

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

I might have a idea what's wrong, but not sure. Let me check.

@mikaelit
Copy link
Author
mikaelit commented May 8, 2017

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:
https://github.com/symfony/symfony-standard/blob/master/web/app_dev.php

Is that a bug? I don't know but it resolve my issue. Thanks a lot!

@sstok
Copy link
Contributor
sstok commented May 8, 2017

@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

@ogizanagi
Copy link
Contributor

@mikaelit : If everything regarding your issue is solved you can close this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
0