Codeception / Codeception/module-datafactory

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

オープン
#6 コメント 0 件 リアクション 7 件 担当者 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 を短くまとめたダイジェスト。