Skip to content


DDC-2901: entity-listeners are not propagated to children of mapped superclasses #3660

doctrinebot opened this Issue · 4 comments

1 participant


Jira issue originally created by user stuartcarnie:

If I have event-listeners set on the subclass and mapped superclass, event-listeners will not be propagated, per this code. Conversely, lifecycle events are, per this


Comment created by @ocramius:

[~stuartcarnie] I lost the code references that you linked, since the code changed and the line numbers don't match anymore.

Any chance that you can provide a failing test for this issue, as well as update the links to reference a fixed commit hash or tag?


Comment created by stuartcarnie:

[~ocramius], I've updated the URIs in the description to the right tree


Comment created by @ocramius:

The code explicitly forbids inheriting listeners when the child class does not have any.

[~fabio.bat.silva] can you provide any insight on why this decision was made?


Comment created by netsuo:


Is this resolved ? Is there any "clean" workaround ?

I had to set my mappersuperclass' listener on the children to make it work, but it isn't really the best solution

@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.