New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The configuration of Entity Listeners is confusing #732
Comments
@ntoniazzi - agreeed. I am trying to register a listener with a service dependency with no luck. |
We always welcome pull requests :) |
Without more information there is not much i can do help with. The best i can do is to point you in the direction of the tests, which have some examples. |
dup of #457 |
@kimhemsoe this is probably not a documentation issue. I'm having trouble registering an EntityListener with some dependencies myself and failed to do so. I've went back to using EventSubscriber instead. I've tried looking into |
The documentation for configuring Entity Listeners is not clear to me. It states that starting with doctrine/orm 2.5, you don't need to declare the
@ORM\EntityListeners
in the entity.But then, how is the Listener linked to the Entity (I couldn't make it work without the annotation).
I also tried to configure the listeners in the yaml file (path
doctrine.orm.entity_managers.{manager}.entity_listeners.entities
) without success.Am I missing something?
Thanks.
The text was updated successfully, but these errors were encountered: