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

Move JoinColumn nullability check to drivers #8726

Closed
wants to merge 2 commits into from

Conversation

Lustmored
Copy link
Contributor

This is a draft solution for #8723. This PR moves nullable logic on JoinColumn from ClassMetadataInfo to drivers and implements reflection fallback for Annotation and Attribute drivers.

Logic here is to use property nullability if and only if there are JoinColumn annotation/attributes that doesn't have nullable set, thus limiting possible BC to situation when JoinColumn is set without nullable and the property is not nullable.

This logic can be extended to other drivers if desired. Also I didn't add any tests (yet!) to get the approach reviewed first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants