-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Internal error: Class Doctrine\ORM\EntityRepository does not exist #58
Comments
It should not be solved like this, but instead asking if Doctrine ORM classes exist before using them. |
Yeah, of course, that would be ideal :-) |
Hello, phpstan-doctrine/src/Reflection/Doctrine/EntityRepositoryClassReflectionExtension.php Line 14 in 95ffd12
|
Unfortunatelly changing this line to:
Generates tons of other false positive errors. |
@josefsabl I don't know what false positives do you mean. Fixed: 98a7072 |
Please disregard that post of mine. I just wanted to test the proposed solution by @zacharra only to find that it isn't that simple. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I'd like to open new issue here, but it was discussed after closing this issue: #51
Looks like this plugin depends on the doctrine/orm although it definitely is useful for doctrine/odm as also stated in readme (Also supports Doctrine ODM.).
The fact is that it really works well for ODM project and I could delete a few ignore patterns. But I had to add doctrine/orm to my composer.json to make it work. Which is a shame.
I think it would not harm if this package added doctrine/orm as one of its own dependencies.
The text was updated successfully, but these errors were encountered: