-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Doctrine cleanup: true
not working
#5326
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
Comments
Does your application code commit? https://github.com/Codeception/Codeception/blob/2.5.2/src/Codeception/Module/Doctrine2.php#L170 |
I don't know. I just do what I'm always doing: I have another app with Symfony 3 and Codeception 2.5.1 and there it works as expected. How can I determine if the transaction is still active in the last line of the test? Is there anything I can |
I had the same problem with Codeception version 2.5.2
|
Probably it was caused by #5250 @joelmedeiros Do you see what could be causing this issue? |
I'll take a look |
A downgrade to 2.5.1 "fixed" it for me too. |
Still not working in 2.5.3 - workaround is to add this to your "conflict": {
"codeception/codeception": "2.5.2 || 2.5.3"
}, |
2.5.4 will break your workaround. |
I finally found the solution in this PR, please check if it can correct all issues, it have worked to me. |
* Reloading module on reconfigure to persist new configs. * Making cleanup property work after on reconfigure * hotfix - do not persist data on database when cleanup config is set. * Update Doctrine2.php correcting merge failure
@ThomasLandauer Please test this change by setting codeception version to I plan to release 2.5.4 next week and it will probably be the last release of 2.5 branch. |
I first removed this from Then I entered => Looks good! :-) |
Hi, i also have this issue with codeception 2.5.1 or 2.5.x-dev, if i look at my queries log i have a COMMIT then a ROLLBACK, so nothing is rollback. I'm just doing a flush. This is my conf file : actor: ApiTester modules: enabled: - REST: depends: Symfony part: Json url: 'http://localhost' - Doctrine2: depends: Symfony cleanup: true - \App\Tests\Helper\Api - Asserts - Symfony: app_path: 'src' environment: 'test' debug: false |
What are you trying to achieve?
Rollback the transcation.
What do you get instead?
Changes are kept in the database.
The output does start with:
But this is not shown at the end of the output (no matter if the test passes or not):
Details
The text was updated successfully, but these errors were encountered: