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

Add generics to UoW methods and DocumentManager::getReference #2320

Merged
merged 2 commits into from
Jun 2, 2021

Conversation

franmomu
Copy link
Contributor

@franmomu franmomu commented Jun 1, 2021

Q A
Type improvement
BC Break no
Fixed issues

Summary

While checking some errors in #2317, these ones:

https://github.com/doctrine/mongodb-odm/pull/2317/files#diff-995edee38ad4f8387e58ebd52c31bcc04c56cc2448d331b1cf5e0b35c57b9efaR228-R266

are because DocumentManager::getReference was not generic.

This PR adds generics to that method and by extension to UnitOfWork::tryGetById. Since I was adding generics to UoW, I've also added so other methods like doctrine/orm@1e832a6.

@alcaeus alcaeus self-assigned this Jun 2, 2021
@alcaeus alcaeus added this to the 2.3.0 milestone Jun 2, 2021
@alcaeus alcaeus merged commit c16f0f2 into doctrine:2.3.x Jun 2, 2021
@alcaeus
Copy link
Member

alcaeus commented Jun 2, 2021

Thanks @franmomu!

@franmomu franmomu deleted the uow_generic branch June 2, 2021 11:32
@franmomu franmomu mentioned this pull request Jun 2, 2021
@alcaeus alcaeus modified the milestones: 2.3.0-alpha1, 2.3.0 Sep 9, 2021
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.

2 participants