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

[5.0-rc2] Don't remove skip foreign key when join entity type is configured explicitly. #22652

Merged
merged 1 commit into from
Sep 22, 2020

Conversation

AndriySvyryd
Copy link
Member

Fixes #22521

Description

Usually the shared-type join entity type is created by convention, but when the configuration source is upgraded to Explicit the declared foreign keys that are created by convention are misidentified as unnecessary and removed.

Customer Impact

The issue only affects a new 5.0 feature - many-to-many when the join entity type created by convention is configured explicitly without configuring the associated foreign keys. The workaround is to configure the relationship fully, which requires 3-5 more lines of code.

How found

Customer reported on RC1.

Test coverage

This PR adds a test for the affected scenario.

Regression?

No, new feature in 5.0.

Risk

Low. The fix only affects a new 5.0 feature and the issue is fixed by not removing a part of the configuration, which is generally safe.

@ajcvickers ajcvickers added this to the 5.0.0 milestone Sep 22, 2020
@ajcvickers ajcvickers merged commit 3a1fd2d into release/5.0-rc2 Sep 22, 2020
@ajcvickers ajcvickers deleted the Issue22521 branch September 22, 2020 18:14
@ajcvickers ajcvickers removed this from the 5.0.0 milestone Sep 22, 2020
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.

4 participants