-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Blameable and Frankenphp creates a new entity #2843
Comments
TBH what you've got there is really the best solution for this without rewriting the blameable listener. Remember most of this package's code predates most long running process related code or architecture like FrankenPHP so running into issues like that isn't totally unexpected. The only sane way I can think to improve this in the library is to support some kind of provider service for this (and other listeners) and then the application would be able to reset that service as appropriate for their setup (not using FrankenPHP myself but I imagine Symfony's |
Thanks for reassuring that I am on the right path 😃 Might be worth to document this case, as long running php processes are more and more common. Furthermore to make it future proof there needs to be an interface for all the listeners. As you can see I had to extend from |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Still relevant. TBH what's probably needed is a fresh take on #2074 |
Environment
Package
show
Doctrine packages
show
PHP version
Subject
when using franken-php and
Gedmo\Blameable
it will try to create a new user instead of just setting setting the existing relation.I fixed this with a simple Decorator, its a bit of a ugly solution, but works meanwhile the bug exists:
Steps to reproduce
Expected results
It should not create a new user
Actual results
It creates a new user
The text was updated successfully, but these errors were encountered: