protected function removeExampleEntities() { $this->testEntityRepository->removeAll(); $this->persistenceManager->persistAll(); $this->persistenceManager->clearState(); }