Codeception / Codeception/module-doctrine

Doctrine2 module and option cleanup does not work

Open
#25 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
4
Forks
2
PR merge metrics
No merged PRs in 30d

Description

I have a functional cest test.
In __before() I create some entities and I assume they will be deleted during __after(), but it does not happen.
I dig a little and found that in `Codeception\Module\Doctrine2` line 174 there is a PDO exception says "There is no active transaction". And when my second test is ran I entities from first test are still exist

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at Codeception\Module\Doctrine2 line 174 and trace how the functional Cest test creates entities in __before() and expects cleanup in __after(). Reproduce the active-transaction exception with the described second-test scenario; done means entities from the first test are removed without the PDO exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
database, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.