-
Notifications
You must be signed in to change notification settings - Fork 62
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
Support for PHP sub-processes #233
Comments
Also see #66 Currently this bundle requires everything to be run in the same php process so that the same PDO instance is used and the transaction logic works. Wondering why you need to edit the entity in a different php process? |
Thanks for the fast answer! From #66 I tried setting There is no way to solve this ATM then? |
Yeah as of now this is impossible. I would maybe instead look into solving those performance issues? Do you run your tests in "no-debug" mode for the Symfony kernel? Doing this in sub-processes seems very exotic 😊 |
Sadly I currently don't have an option other than running parallel processes.
I agree, exotic solution for a bit exotic use case. And PHP does not help much here either :') I'm now considering not using this bundle for this test case in particular and let the test case persist the data to the DB. Thanks for your time though. Have a good day! |
Yeah then this is the only way currently indeed |
Closing as its the same issue as #66 |
Is there a way to share DB state between PHP main and sub-processes?
Currently, the class I want to test does something like this:
I would like to test that the result in DB matches what I expect once both steps finish.
Problem is the sub-process cannot retrieve the entity created in the main one.
ps: Note the sub-processes run asynchronously.
Any ideas on how to solve this? Is there a way to retrieve the changes in the entity?
The text was updated successfully, but these errors were encountered: