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

Codeception DataFactory Module will not create a new EntityManager if the original closes. #6

Open
ShazzamaPajama opened this issue Nov 21, 2017 · 0 comments

Comments

@ShazzamaPajama
Copy link

Codeception's DataFactory module contains an ORM module for pushing entities to a database.

I have run into an issue where if the ORM module's EntityManager instance closes in any due to an error (example: failed insert). When the entity manager closes, it stays closed for any future tests that get run.

[Doctrine\ORM\ORMException] The EntityManager is closed.

While I feel it is important to double check your factory definitions and make sure they are correct. I don't feel that an error in one test should impact the rest of my tests unless they are trying to use the same data.

I would like to to see the DataFactory & Doctrine modules set up to create new instances of an entity manager if the original entity manger happens to close.

@Naktibalda Naktibalda transferred this issue from Codeception/Codeception Jan 9, 2021
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