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 not passing $fromColumn to ColumnDiff #4785

Merged
merged 1 commit into from
Sep 11, 2021

Conversation

morozov
Copy link
Member

@morozov morozov commented Sep 10, 2021

Q A
Type deprecation
BC Break no

The $fromColumn parameter is optional since its introduction in #220. It had to be declared as optional to avoid a BC break. The fact that not passing it wasn't immediately deprecated, requires the code that interprets the diff to interpret it in two modes: with and without the $fromColumn.

Given that the property-based comparison is deprecated (#4746), the next step is to stop using $changedProperties and only rely on the actual column definitions. For that, we need to require $fromColumn to be always set.

Once we stop using $changedProperties in 4.0.x, we can deprecate it.

@morozov morozov force-pushed the deprecate-partial-column-diff branch from 249251c to a8dd2d3 Compare September 10, 2021 21:28
@morozov morozov merged commit efcabc1 into doctrine:3.2.x Sep 11, 2021
@morozov morozov deleted the deprecate-partial-column-diff branch September 11, 2021 14:59
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants