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

Add a test case for join columns on the inverse side of a 1:1 assoc #11300

Open
wants to merge 1 commit into
base: 3.0.x
Choose a base branch
from

Conversation

derrabus
Copy link
Member

@derrabus derrabus commented Feb 23, 2024

See #11299 for the same test on the 2.18.x branch.

In a project, I've stumbled across a "feature" which we seemed to have removed, but I don't know if it was on purpose. The entity model contained a bidirectional OneToOne relation with a JoinColumn declared on the inverse side. That join column was actually added to the schema by the ORM and it was even possible to have it persist the ID of the foreign record.

In 3.0, this is not possible anymore, but it's mainly prevented by the metadata model.

I'm opening this issue to clarify if we have removed this feature on purpose or if we have simply forgotten it while developing the new metadata mapping classes.

cc @greg0ire

@greg0ire
Copy link
Member

It was definitely not intentional, I should be able to look into it soon, do feel free to beat me to it though.

@greg0ire
Copy link
Member

Apparently I genuinely thought that was invalid: #10667

@greg0ire
Copy link
Member

🤔 this originated in #10654

@derrabus
Copy link
Member Author

cc @mpdude

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.

None yet

2 participants