Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[DoctrineBridge] catch errors while converting to db values in data collector#28917
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 ourterms of service andprivacy 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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
nicolas-grekas commentedOct 20, 2018
Thanks for the PR. Can you have a look at test failures please? |
alekitto commentedOct 20, 2018
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? |
l-vo commentedOct 22, 2018
@alekitto you can simply amend your commit and push it again ( |
src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
e58c5a5 to0187892Compare
nicolas-grekas left a comment
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 OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
0187892 to61c4531Comparefabpot commentedNov 26, 2018
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 | MITWhen 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
Uh oh!
There was an error while loading.Please reload this page.
When the profiler is enabled and collecting doctrine queries data, if a query fails because of
ConversionExceptionor 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.