Object persistence has side effects in functional tests
Unpersisted objects which have been added, but not persisted (no Entity Manager flush() called) will still be present in following tests and thus generate side effects.
[BUGFIX] No persistence side effects anymore in functional tests
Doctrine's Unit of Work still contained objects from previous tests.
In order to prevent side effects, the Entity Manager must be cleared
before executing further tests.