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

[release/9.0] Don't remove non-existent foreign keys. #34614

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

AndriySvyryd
Copy link
Member

Fixes #34329

Description

When a navigation to an owned entity type is ignored the entity type is removed and this cascades through the referencing owned entity types. And if one of them had a back navigation to the top owned entity type then we'll try to remove it again causing an exception.

Customer impact

An exception is thrown when ignoring a navigation to an owned entity type for the affected models. There's a workaround, but this issue is hard to diagnose for the users.

How found

Reported by a user on 8.0.7

Regression

No

Testing

Tests added.

Risk

Low.

@SamMonoRT
Copy link
Member

Great to see a new test added to catch this.

@AndriySvyryd AndriySvyryd merged commit 1c40112 into release/9.0 Sep 5, 2024
7 checks passed
@AndriySvyryd AndriySvyryd deleted the Issue34329 branch September 5, 2024 20:02
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.

3 participants