[PR #10825] Bug fix for cascade persist of entity with inheritance #12643

Open
opened 2026-01-22 16:14:43 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/10825

State: closed
Merged: No


  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

**Original Pull Request:** https://github.com/doctrine/orm/pull/10825 **State:** closed **Merged:** No --- 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
admin added the pull-request label 2026-01-22 16:14:43 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#12643