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

Bug fix for cascade persist of entity with inheritance #10825

Open
wants to merge 2 commits into
base: 2.15.x
Choose a base branch
from

Conversation

drewblin
Copy link

@drewblin drewblin commented Jul 7, 2023

  1. We have entity with inheritance
  2. We have lifecycle callback on child entity, not on parent
  3. We have main entity with association to entity with inheritance with cascade persist
  4. We call persist on main entity, when association value is null, than we set association value and only that call commit

Current behavior - lifecycle callback on child entity was not called.
Expected behavior - lifecycle callback on child entity was called

drewblin added 2 commits July 7, 2023 21:46
1. We have entity with inheritance
2. We have lifecycle callback on child entity, not on parent
3. We have main entity with association to entity with inheritance with cascade persist
4. We call persist on main entity, when association value is null, than we set association value and only that call commit
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.

1 participant