[PR #9243] Removing list "Lifecycle Events" #11456

Closed
opened 2026-01-22 16:10:50 +01:00 by admin · 0 comments
Owner

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

State: closed
Merged: Yes


As announced in https://github.com/doctrine/orm/pull/9184#issuecomment-965837780

I'm committing the events one by one, to make it easier to follow.

Notes:

  • postUpdate, postRemove, postPersist aren't similar enough to have them in one section, so it might be better to separate them.
  • This warning I don't understand. I moved it to postRemove. Should it be repeated on all "events triggered after an entity removal" (which ones?):

    The postRemove event or any events triggered after an entity removal
    can receive an uninitializable proxy in case you have configured an entity to
    cascade remove relations. In this case, you should load yourself the proxy in
    the associated pre* event.

**Original Pull Request:** https://github.com/doctrine/orm/pull/9243 **State:** closed **Merged:** Yes --- As announced in https://github.com/doctrine/orm/pull/9184#issuecomment-965837780 I'm committing the events one by one, to make it easier to follow. Notes: * postUpdate, postRemove, postPersist aren't similar enough to have them in one section, so it might be better to separate them. * This warning I don't understand. I moved it to `postRemove`. Should it be repeated on all "events triggered after an entity removal" (which ones?): > The ``postRemove`` event or any events triggered after an entity removal can receive an uninitializable proxy in case you have configured an entity to cascade remove relations. In this case, you should load yourself the proxy in the associated ``pre*`` event.
admin added the pull-request label 2026-01-22 16:10:50 +01:00
admin closed this issue 2026-01-22 16:10:50 +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#11456