concrete/src/Csv/Export/AbstractExporter.php
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);
            }
        }
    }
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);
            }
        }
    }
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 ) ; } } }
Unload every Doctrine entites, and reset the state of this instance.
Unload every Doctrine entites and reset the state of this instance .