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

fix: #3142 Cascading a OneToMany, set the relationship when the child isn't new or dirty #3366

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

rbygrave
Copy link
Member

That is, previously the relationship back from the child to the parent was being updated when the child bean was new or dirty BUT NOT in the case when the child bean was loaded and unchanged.

This fix includes that case updating the ManyToOne side of the relationship on the child when the save is cascaded.

… isn't new or dirty

That is, previously the relationship back from the child to the parent was being updated when the child bean was new or dirty BUT NOT in the case when the child bean was loaded and unchanged.

This fix includes that case updating the ManyToOne side of the relationship on the child when the save is cascaded.
@rbygrave rbygrave self-assigned this Mar 20, 2024
@rbygrave rbygrave linked an issue Mar 20, 2024 that may be closed by this pull request
@rbygrave rbygrave added the bug label Mar 20, 2024
@rbygrave rbygrave added this to the 14.0.2 milestone Mar 20, 2024
@rbygrave rbygrave merged commit 0b11c54 into master Mar 20, 2024
1 check passed
@rbygrave rbygrave deleted the feature/3142-set-relationship branch March 20, 2024 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding entity to @OneToMany property doesn't create the relationship
1 participant