title: How to rollback commits in Behat functional tests with Symfony2 and Doctrine?
body: <p>I'm writing functional tests with Behat and Mink in a Symfony2 application.</p>
  
  <p>I make use of the data that's already in the database to make the tests instead of adding fixtures (a lot would be needed).</p>
  
  <p>Therefore, I can't use a SQLite database only for the test environment as data would not be available.</p>
  
  <p>My tests work fine, but data is persisted in the database when tests are run.</p>
  
  <p>How can I automatically clean up data that's been persisted with Doctrine after a scenario is run?</p>
  
  <p>I can't use a transaction as functional tests involve page redirections (e.g. the form is filled and posted to an other Symfony2 action).</p>