protected function tearDown()
 {
     /** @var EntityManager $manager */
     $manager = $this->createClient()->getContainer()->get("doctrine.orm.default_entity_manager");
     $manager->createQueryBuilder()->delete('Test\\TestBundle\\Entity\\Car', 'c')->getQuery()->execute();
     parent::tearDown();
 }
 protected function tearDown()
 {
     /** @var DocumentManager $manager */
     $manager = $this->createClient()->getContainer()->get("doctrine.odm.mongodb.document_manager");
     $manager->createQueryBuilder()->remove('Test\\TestBundle\\Document\\Order')->getQuery()->execute();
     $manager->createQueryBuilder()->remove('Test\\TestBundle\\Document\\Client')->getQuery()->execute();
     parent::tearDown();
 }