I've just started using this module and I found lack of unload() method puzzling. I'm using it for PHPUnit tests, so setup and teardown are two mandatory steps.
Purger just seems like a disproportionate solution for reverting fixtures.
What if I only want to delete the entities added by current fixtures class, and not purge the entire tables?
I've manage to wire up a unload() method myself. In load() method I'm loading all the created entities to an array, and storing EntityManager as a class property, and later, the unload() method can remove everything.
I've just started using this module and I found lack of unload() method puzzling. I'm using it for PHPUnit tests, so setup and teardown are two mandatory steps.
Purger just seems like a disproportionate solution for reverting fixtures.
What if I only want to delete the entities added by current fixtures class, and not purge the entire tables?
I've manage to wire up a unload() method myself. In load() method I'm loading all the created entities to an array, and storing EntityManager as a class property, and later, the unload() method can remove everything.
Stiil, I wonder why unload() isn't there?