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

Use a dedicated exception for the check added in #10785 #10881

Merged
merged 1 commit into from
Aug 9, 2023

Conversation

mpdude
Copy link
Contributor

@mpdude mpdude commented Aug 4, 2023

This adds a dedicated exception for the case that objects with colliding identities are to be put into the identity map.

Implements #10872.

@mpdude
Copy link
Contributor Author

mpdude commented Aug 4, 2023

I thought it might be worthwhile to extend from ORMException, but strictly speaking, that makes it a BC break because the generic RuntimeException was used previously.

I am open for all suggestions regarding naming or other exception base classes.

This adds a dedicated exception for the case that objects with colliding identities are to be put into the identity map.

Implements doctrine#10872.
@mpdude mpdude force-pushed the dedicated-exception-class branch from 31f00cb to d813432 Compare August 4, 2023 16:37
@mpdude
Copy link
Contributor Author

mpdude commented Aug 4, 2023

@gbirke FYI

Copy link
Contributor

@gbirke gbirke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the change, esp. with the throws annotation. BC Break (No RuntimeException thrown) won’t be a problem for me

@derrabus derrabus added the Bug label Aug 9, 2023
@derrabus derrabus added this to the 2.16.1 milestone Aug 9, 2023
@derrabus derrabus merged commit 6de4b68 into doctrine:2.16.x Aug 9, 2023
@mpdude mpdude deleted the dedicated-exception-class branch August 9, 2023 11:12
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.

3 participants