mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #8237] Add two new events: initializePersistentCollection and initializeProxy #10872
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/doctrine/orm/pull/8237
State: closed
Merged: No
This pull request adds two new events so that they can be observed from userland. The two new events are
initializeProxy: called each time a proxy is initializedinitializePersistentCollection: called each time a persistent collection is initialized.The use case behind this PR is to provide an hook to be able to detect n+1. See n-plus-one-detector