Reputation: 1711
I have a strange problem with PhpStorm and Symfony plugin. After having worked fine for many months, suddenly it won't recognize any Symfony method. A simple $this->getDoctrine()->getManager()
won't work, since PhpStorm says "Method getDoctrine() not found". Neither $this->get("whatever")
.
What is the cause and how can I solve this?
Upvotes: 1
Views: 1494
Reputation: 66
You can comment above a Variable if you want in php. PhpStorm will recognize it and link the classes.
For example:
/** @var Serializer $serializer */
$serializer = $this->get('jms_serializer');
Upvotes: 1
Reputation: 1711
I solved the problem by searching on the Internet.
Regarding this article:
https://github.com/Haehnchen/idea-php-symfony2-plugin/issues/1266
PhpStorm doesn't like many projects opened in the same window, since it doesn't know where to find the references it needs because all the projects have the same structure.
In my opinion this is very horrible programmatically speaking, I hope that JetBrains will fix this!
Thanks everybody anyway
Upvotes: 1