[PR #10122] Automap events in AttachEntityListenersListener #12112

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

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

State: closed
Merged: Yes


Required for https://github.com/doctrine/DoctrineBundle/issues/1560

Currently, the AttachEntityListenersListener::addEntityListener() method requires an eventName to be specified when registering a listener. With this change null can be passed allowing the event names to be read from the listener class by iterating over the method names.

**Original Pull Request:** https://github.com/doctrine/orm/pull/10122 **State:** closed **Merged:** Yes --- Required for https://github.com/doctrine/DoctrineBundle/issues/1560 Currently, the `AttachEntityListenersListener::addEntityListener()` method requires an `eventName` to be specified when registering a listener. With this change `null` can be passed allowing the event names to be read from the listener class by iterating over the method names.
admin added the pull-request label 2026-01-22 16:12:58 +01:00
admin closed this issue 2026-01-22 16:12:58 +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#12112