Codeception / Codeception/module-datafactory

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

未关闭
#6 0 条评论 7 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
PHP
星标
9
派生
7
PR 合并指标
30 天内没有已合并 PR

描述

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.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。