Unload every Doctrine entites, and reset the state of this instance.
188119
protected function unloadDoctrineEntities()
    {
        $this->attributeKeysAndControllers = null;
        $app = Application::getFacadeApplication();
        $entityManager = $app->make(EntityManagerInterface::class);
        $entityManager->clear();
        $category = $this->getCategory();
        if ($category !== null) {
            $categoryClass = ClassUtils::getClass($category);
            if (!$entityManager->getMetadataFactory()->isTransient($categoryClass)) {
                $entityManager->merge($category);
            }
        }
    }
1056085
public function unload()
    {
        if (null === $this->state) {
            throw new NotLoadedException('The binding descriptor is not loaded.');
        }

        $this->containingModule = null;
        $this->typeDescriptor = null;
        $this->loadErrors = array();
        $this->state = null;
    }
220998
public function reset()
    {
        $this->numRequests  = 0;
        $this->numProcessed = 0;

        $this->currItem                 = null;
        $this->resumptionToken          = null;
        $this->totalRecordsInCollection = null;
        $this->expireDate               = null;

        $this->batch = [];
    }
121840
public function purge()
    {
        if ($this->purger === null) {
            throw new \Exception('Doctrine\Common\DataFixtures\Purger\PurgerInterface instance is required if you want to purge the database before loading your data fixtures.');
        }
        if ($this->logger) {
            $this->log('purging database');
        }
        $this->purger->purge();
    }
241371
public function reset()
    {
        if (null !== $this->_dataReader) {
            $this->_dataReader->close();
        }
        $this->_dataReader = null;
        $this->_batch = null;
        $this->_value = null;
        $this->_key = null;
    }
1149996
def reset_command(force):
    """"""
    if not force:
        exit('Cancelled.')

    click.echo('Dropping DB tables.')
    drop_all()

    click.echo('Running DB migrations.')
    alembic.upgrade(migrate.get_config(None), 'head')

    click.echo('Done.')
143769
public static function reset()
    {
        self::$loader = null;
        self::$builder = null;
        self::$fixtures = null;
        self::$triggers = null;

        self::$hasOneRelationshipClass = '\Phactory\HasOneRelationship';
        self::$dependencyClass = '\Phactory\Dependency';
    }
1050830
def reset(self):
        """"""
        self.Base.metadata.drop_all(self.session.bind)
        self.initialize()
973770
public static function resetApp()
    {
        // Set install mode.
        SystemUtil::enableInstallMode();

        $currentDir = getcwd();
        chdir(self::getRootDir());
        ob_start();
        // Drop all tables
        $command = 'php bin/console doctrine:schema:drop --force --full-database';
        system($command, $output);
        // Run composer post install command.
        $command = 'composer run-script post-install-cmd';
        system($command, $output);
        ob_get_clean();
        chdir($currentDir);
    }
958965
public static function destroy() : void
    {
        Facade::clearResolvedInstances();

        Facade::setFacadeApplication(null);

        self::setContainer(null);
    }
1252558
public static function reset() {
		if ( empty( self::$initial_state ) ) {
			self::$initial_state = get_class_vars( 'Inflector' );

			return;
		}

		foreach ( self::$initial_state as $key => $val ) {
			if ( 'initial_state' !== $key ) {
				self::${$key} = $val;
			}
		}
	}
743536
public function clear()
    {
        foreach (array_keys($this->instances) as $key) {
            $this->instances[$key] = null;
            unset($this->instances[$key]);
        }

        $this->instances = [];
    }
419739
public function reset(): void
    {
        $this->classifiers = [];
        $this->allLabels = [];
        $this->costValues = [];

        $this->resetBinary();
    }
471654
def _reset(cls):
        """"""
        if os.getpid() != cls._cls_pid:
            cls._cls_pid = os.getpid()
            cls._cls_instances_by_target.clear()
            cls._cls_thread_by_target.clear()
350886
public void reset() {
    this.state = State.FREE;
    this.level = Integer.MAX_VALUE;
    this.mark = 0;
    this.reason = null;
  }
602839
public function reset() {
		$ex = func_get_args();
		foreach($_SESSION as $n => $s) {
			if(!in_array($n,$ex)) unset($_SESSION[$n]);
		}
		if(empty($ex)) session_destroy();
	}
750682
public function reset()
	{
		$this->meta = false;
		$this->file = false;
		$this->content = false;
		$this->changed = false;
		$this->ttl = 0;
		$this->cacheHash = null;
	}