-
Notifications
You must be signed in to change notification settings - Fork 99
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
Call to an undefined method <EntityName>Repository::findOneBy<PropertyName>(). #14
Comments
This is not yet supported, because PHPStan can define magic methods and properties, but PHPStan does not have any concept of generics, which is needed to know what kind of entity the repository represents. |
But you can add the error to |
Thanks, that works perfectly :
|
Again, many thanks... This worked Great for Symfony 4 - Doctrine Repository Method called from a Command...
My custom function to truncate old data, we love PHPStan -- and thanks for having solution 👍 |
Hi ! |
Read PHPStan's README, it's there: https://github.com/phpstan/phpstan#ignore-error-messages-with-regular-expressions |
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. |
Is this kind of error handable ?
The text was updated successfully, but these errors were encountered: