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
[DoctrineBridge] catch errors while converting to db values in data collector #28917
[DoctrineBridge] catch errors while converting to db values in data collector #28917
Conversation
src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php
Outdated
Show resolved
Hide resolved
Thanks for the PR. Can you have a look at test failures please? |
I’ve initially sumbitted the PR on a wrong base branch and I changed it later, but the build has not restarted, could you please restart it or should I push another commit to rebuild it? |
@alekitto you can simply amend your commit and push it again ( |
src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php
Outdated
Show resolved
Hide resolved
e58c5a5
to
0187892
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK for me after the suggested change.
src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php
Outdated
Show resolved
Hide resolved
0187892
to
61c4531
Compare
Thank you @alekitto. |
…s in data collector (alekitto) This PR was merged into the 2.8 branch. Discussion ---------- [DoctrineBridge] catch errors while converting to db values in data collector | Q | A | ------------- | --- | Branch? | 2.8 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | License | MIT When the profiler is enabled and collecting doctrine queries data, if a query fails because of `ConversionException` or another error thrown while resolving parameters, the data collector is also throwing the same error. This should fix this case. The tests for this case cannot be executed in 5.4 because Doctrine 2.5 fails with a fatal error in `DateType`. Commits ------- 61c4531 [DoctrineBridge] catch errors while converting to db values in data collector
When the profiler is enabled and collecting doctrine queries data, if a query fails because of
ConversionException
or another error thrown while resolving parameters, the data collector is also throwing the same error.This should fix this case. The tests for this case cannot be executed in 5.4 because Doctrine 2.5 fails with a fatal error in
DateType
.