Skip to content
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

Fix handling of lazy entity listeners #849

Merged
merged 1 commit into from Oct 30, 2018

Conversation

nicolas-grekas
Copy link
Member

Discussed in symfony/symfony#28304 (comment)

When an entity listener is declared as lazy at the definition level (and not at the tag level), then it is registered using the ContainerAwareEntityListenerResolver::register(). This class in turn uses get_class() to create its internal map.

But get_class() on a lazy-proxy returns the generated class of the proxy - not the class of the listener implementation.

Makes sense?

@kimhemsoe
Copy link
Member

@nicolas-grekas Thanks

@kimhemsoe kimhemsoe self-requested a review October 30, 2018 16:00
@kimhemsoe kimhemsoe self-assigned this Oct 30, 2018
@kimhemsoe kimhemsoe added the Bug label Oct 30, 2018
@kimhemsoe kimhemsoe added this to the 1.9.2 milestone Oct 30, 2018
@nicolas-grekas nicolas-grekas deleted the fix-lazy branch October 30, 2018 16:09
@kimhemsoe
Copy link
Member

@nicolas-grekas Emh.. whops.. was that supposed to be merged with master?

@nicolas-grekas
Copy link
Member Author

that's a bug fix, so should go on the lowest maintained branch I suppose?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants