zenstruck / foundry

A model factory library for creating expressive, auto-completable, on-demand dev/test fixtures with Symfony and Doctrine.
https://symfony.com/bundles/ZenstruckFoundryBundle/current/index.html
MIT License
644 stars 70 forks source link

fix: do not flush global state twice when dama is not enabled #489

Closed nikophil closed 1 year ago

nikophil commented 1 year ago

fixes #487

not sure why this happened now (maybe because of the new exception in doctrine/orm) but without dama, the first test using ResetDatabase was flushing twice the global state, hence the error