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

Infinite loop when using Doctrine transaction middleware with #[ApiResource(mercure: true)] #6936

Open
toby-griffiths opened this issue Jan 31, 2025 · 0 comments

Comments

@toby-griffiths
Copy link
Contributor

API Platform version(s) affected: 4.0.16

Description
We have a brand new project where we've just set up messenger with the doctrine transaction middleware. When attempting to create a new Greeting we get stuck in an infinite loop.

How to reproduce
Clone this repo, and follow the README steps.

Possible Solution
Not 100% sure, but maybe have the Mercure listener remember that it's already processing an entity, so it doesn't attempt to do it repeatedly. Happy to submit the PR if this is the preferred approach, or another with some guidance to how.

Additional Context
n/a

LaurentHuzard added a commit to LaurentHuzard/core that referenced this issue Feb 10, 2025
…ng premature flush before all objects updates are published and stores are reset (api-platform#6936)
LaurentHuzard added a commit to LaurentHuzard/core that referenced this issue Feb 10, 2025
…ng premature flush before all objects updates are published and stores are reset (api-platform#6936)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant