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

Deprecate DocumentManager::clear with an argument #2423

Merged
merged 1 commit into from
Apr 8, 2022

Conversation

malarzm
Copy link
Member

@malarzm malarzm commented Apr 3, 2022

doctrine/persistence deprecated using clear with an argument (finally) so let's bring ODM on par. I fully agree that clearing documents blindly may be a footgun and as it's still possible to use detach I have no second thoughts about the deprecation.

Q A
Type deprecation
BC Break no
Fixed issues part of #2419

Summary

This PR deprecates clearing documents of a specified class and provides a forward compatibility layer for doctrine/persistence 3.0 which will have methods removed.

@malarzm malarzm changed the base branch from 2.3.x to 2.4.x April 3, 2022 13:22
@malarzm malarzm added the Task label Apr 3, 2022
@malarzm malarzm added this to the 2.4.0 milestone Apr 3, 2022
@malarzm malarzm force-pushed the deprecate-clearing-class branch from 283c548 to b261884 Compare April 3, 2022 13:34
@malarzm malarzm merged commit cad2504 into doctrine:2.4.x Apr 8, 2022
@malarzm malarzm deleted the deprecate-clearing-class branch April 8, 2022 17:00
@malarzm malarzm mentioned this pull request Apr 14, 2022
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants