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

[GH-3519] Deprecate passing the same class with different discriminator values. #9760

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

beberlei
Copy link
Member

Prepares the deprecation for the later removal of this mapping inconsistency.

Related: #3519

@beberlei beberlei requested review from greg0ire and derrabus May 12, 2022 20:27
@beberlei beberlei force-pushed the GH-3519-UniqueDiscriminatorValues branch from e17eb8f to 94b96c6 Compare May 12, 2022 20:55
@derrabus
Copy link
Member

LGTM, once @greg0ire's suggestion is applied.

@mpdude
Copy link
Contributor

mpdude commented Jan 19, 2023

@beberlei This might be an easy thing to bring to an end, and it would add one more mapping consistency check to the codebase.

Copy link
Contributor

There hasn't been any activity on this pull request in the past 90 days, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 7 days.
If you want to continue working on it, please leave a comment.

@github-actions github-actions bot added the Stale label Nov 13, 2024
@greg0ire greg0ire changed the base branch from 2.13.x to 2.21.x November 13, 2024 08:03
@greg0ire greg0ire force-pushed the GH-3519-UniqueDiscriminatorValues branch from 94b96c6 to 4e4acd3 Compare November 13, 2024 08:04
@stof
Copy link
Member

stof commented Nov 13, 2024

shouldn't this target the 3.4.x branch instead, as this is about a deprecation for a removal in 4.0 ?

@stof
Copy link
Member

stof commented Nov 13, 2024

And maybe the schema validator should already report an error for such case

@greg0ire
Copy link
Member

@stof you're probably right about the target branch, this was created in 2022, and 3.0 did not exist back then. Regarding the schema validator, maybe the initial intent was to contribute the validation in the next major?

@stof
Copy link
Member

stof commented Nov 13, 2024

AFAICT, the intent seems to be to turn the deprecation into a MappingException in the next major (which is stricter than something reported only by the SchemaValidator). But maybe the deprecation is indeed enough in that case, instead of turning it into an error reported only to people validating their schema.

@greg0ire greg0ire force-pushed the GH-3519-UniqueDiscriminatorValues branch from 4e4acd3 to da51234 Compare November 14, 2024 07:35
@greg0ire greg0ire changed the base branch from 2.21.x to 3.4.x November 14, 2024 07:35
Copy link
Member

@SenseException SenseException left a comment

Choose a reason for hiding this comment

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

And maybe the schema validator should already report an error for such case

But maybe the deprecation is indeed enough in that case, instead of turning it into an error reported only to people validating their schema.

I assume the schema validator error report is off the table. (sql-pun intended)

@greg0ire greg0ire merged commit 5013d5d into doctrine:3.4.x Nov 18, 2024
87 checks passed
@greg0ire greg0ire added this to the 3.4.0 milestone Nov 18, 2024
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.

6 participants