Doctrine autocomplete does not work as described

Greetings,

 

I have checked the doctrine documentation on Jetbrain's website and I have found this page

https://www.jetbrains.com/help/phpstorm/symfony-doctrine.html#code-completion-for-doctrine-schemas-repositories-entities

 

On paper it looks awesome, but in reality things are sligthly different. When I reach the "Call the methods of a specific entity fetched from the repository" part, it simply does not work, the autocomplete list is empty (except two generic lines) , while my entity has a dozen of methods implemented

 

 

And Yes, I know I could add a doc block to specify my variable type, but it would be so much more convenient (and clean) if phpsorm could do it alone, as the jetbrain's documentation says...

4 comments
Comment actions Permalink

Just to confirm, do you have a Symfony plugin installed and enabled already?

1
Comment actions Permalink

I have the same issue. Symfony support, PHP Annotation plugins installed.

0
Comment actions Permalink

Vasiliy Yur Yes I have symfony plugin installed and enabled. Here's my config:

 

0
Comment actions Permalink

Would it be possible to share a small reproducible project, so I could check how it works on my side?

1

Please sign in to leave a comment.