-
Notifications
You must be signed in to change notification settings - Fork 170
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
Fatal error with doctrine/dbal
4.x
#806
Comments
Are you using DBAL 3 or 4? |
doctrine/orm
3.xdoctrine/orm
3.x (& doctrine/dbal
4.x)
DBAL 4.x, it's more of a problem with |
doctrine/orm
3.x (& doctrine/dbal
4.x)doctrine/dbal
4.x
Return type switched from bindValue($param, $value, $type = Doctrine\DBAL\ParameterType::STRING): bool
bindValue(string|int $param, mixed $value, Doctrine\DBAL\ParameterType $type): void We need to create another one, and this is probably not even the only BC that we need to handle. |
Related to #579 |
We'll add support for DBAL v4; I can't give you a timeline at this point. |
When creating a new symfony project with --webapp, composer.json adds "doctrine/orm:^3.0" to the requires section. I wish instead it were "^2.1||^3.0", and let composer figure out which version to use based on what the dependencies support. That would help in this case, as well as for API Platform api-platform/core#6150 |
Unfortunately, since Doctrine is an optional dependency of this package, we don't require it in
|
@ste93cry What about declaring a conflict with the unsupported version, until it is supported? |
That would prevent users to use the whole bundle if they use DBAL 4, which is an issue only if you enable tracing. |
Could anyone point out how to disable tracing ? 🙂 |
You can disable tracing as a whole using: sentry:
tracing:
enabled: false or you can disable tracing specifically for DBAL using: sentry:
tracing:
dbal:
enabled: false |
Until resolved I solved that by going with orm 3.* but constraining dbal.
|
Indeed, even with the whole bundle disabled, the application still fails with:
|
I believe that at this point, a |
It is being worked on. |
Support for |
How do you use Sentry?
Sentry SaaS (sentry.io)
SDK version
3.6.0
Steps to reproduce
Install
"sentry/sentry-symfony": "^4.0"
along"doctrine/dbal": "^4.0"
Expected result
composer install
works with no errorActual result
composer install
(more specifically composer hookscript cache:clear
) crash withThe text was updated successfully, but these errors were encountered: