Skip to content
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

Merged
merged 1 commit into from Nov 26, 2018

Conversation

alekitto
Copy link
Contributor

@alekitto alekitto commented Oct 18, 2018

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.

@alekitto alekitto changed the base branch from master to 2.8 October 18, 2018 16:10
@nicolas-grekas nicolas-grekas added this to the 2.8 milestone Oct 20, 2018
@nicolas-grekas
Copy link
Member

Thanks for the PR. Can you have a look at test failures please?

@alekitto
Copy link
Contributor Author

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?
Another thing: fabbot.io complains about a line that I’ve not touched, should I edit it or leave it as is?

@l-vo
Copy link
Contributor

l-vo commented Oct 22, 2018

@alekitto you can simply amend your commit and push it again (git commit --amend && git push -f) :)

@alekitto alekitto force-pushed the fix-doctrine-data-collector-exception branch 3 times, most recently from e58c5a5 to 0187892 Compare October 22, 2018 21:21
Copy link
Member

@nicolas-grekas nicolas-grekas left a 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.

@fabpot
Copy link
Member

fabpot commented Nov 26, 2018

Thank you @alekitto.

@fabpot fabpot merged commit 61c4531 into symfony:2.8 Nov 26, 2018
fabpot added a commit that referenced this pull request Nov 26, 2018
…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
@alekitto alekitto deleted the fix-doctrine-data-collector-exception branch November 26, 2018 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants