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

Introduce doctrine/deprecations #8466

Merged
merged 7 commits into from
Feb 12, 2021
Merged

Conversation

beberlei
Copy link
Member

@beberlei beberlei commented Feb 7, 2021

Using alpha version of doctrine/deprecations (v0.2.0) replace all usages of trigger_error and replace tests using VerifyDeprecations. During implementation realized a few changes to API needed leading to these PRs that were merged into v0.2:

The tests were cleaned up a lot with assertions about deprecations, it is not helpful to have the same deprecation asserted on in hundrets of different, unrelated tests.

Uncoditional deprecations are not tested anymore, because their code is trival and does not affect runtime behavior. Only conditional deprecations are still tested.

This PR also undeprecates EntityManager::detach for now, because unless we find some kind of replacement API it cannot be removed as relied on heavily by the batch processing use-cases with AbstractQuery::toIterable.

@beberlei beberlei requested a review from greg0ire February 7, 2021 16:49
@beberlei beberlei changed the base branch from 2.8.x to 2.9.x February 7, 2021 16:50
@beberlei beberlei marked this pull request as ready for review February 8, 2021 20:14
@beberlei beberlei merged commit 6fe388a into doctrine:2.9.x Feb 12, 2021
@beberlei beberlei deleted the Deprecations branch February 12, 2021 17:14
@beberlei beberlei added this to the 2.9.0 milestone Feb 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants