Skip to content

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

Merged
AndriySvyryd merged 1 commit intorelease/9.0from
Issue34329
Sep 5, 2024
Merged

[release/9.0] Don't remove non-existent foreign keys.#34614
AndriySvyryd merged 1 commit intorelease/9.0from
Issue34329

Conversation

@AndriySvyryd
Copy link
Copy Markdown
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.

@AndriySvyryd AndriySvyryd requested review from a team, SamMonoRT and artl93 September 5, 2024 02:10
@SamMonoRT
Copy link
Copy Markdown
Member

Great to see a new test added to catch this.

@AndriySvyryd AndriySvyryd merged commit 1c40112 into release/9.0 Sep 5, 2024
@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