src/Admin/Controllers/EntityManagerController.php
public function generate_schema($name, $selfedit = 'false', $installMode = null)
    {
        $this->instanceName = $name;
        $this->selfedit = $selfedit;
        $this->installMode = $installMode;
        $this->patchable = class_exists("Mouf\\Database\\Patcher\\DatabasePatchInstaller");
        if ($this->patchable) {
            // Let's check if there are awaiting patches. If so, let's display a warning.
            $patchService = new InstanceProxy('patchService');
            /* @var $patchService PatchService */
            $this->nbAwaitingPatches = $patchService->getNbAwaitingPatchs();
        }

        if ($selfedit == 'true') {
            $this->moufManager = MoufManager::getMoufManager();
        } else {
            $this->moufManager = MoufManager::getMoufManagerHiddenInstance();
        }

        $constants = $this->moufManager->getConfigManager()->getDefinedConstants();
        $this->debugMode = $constants['DEBUG'];

        $proxy = new InstanceProxy($name);
        $this->sql = $proxy->getSchemaUpdateSQL();
        if (empty($this->sql) && $installMode == 1) {
            InstallUtils::continueInstall($selfedit == 'true');

            return;
        }
        if($this->moufManager->issetVariable("doctrine_".$name."_generatePatch")) {

            $this->generatePatch = $this->moufManager->getVariable("doctrine_" . $name . "_generatePatch");
        }
        $this->contentBlock->addFile(__DIR__.'/../views/install2.php', $this);
        $this->template->toHtml();
    }
public function generate_schema($name, $selfedit = 'false', $installMode = null)
    {
        $this->instanceName = $name;
        $this->selfedit = $selfedit;
        $this->installMode = $installMode;
        $this->patchable = class_exists("Mouf\\Database\\Patcher\\DatabasePatchInstaller");
        if ($this->patchable) {
            // Let's check if there are awaiting patches. If so, let's display a warning.
            $patchService = new InstanceProxy('patchService');
            /* @var $patchService PatchService */
            $this->nbAwaitingPatches = $patchService->getNbAwaitingPatchs();
        }

        if ($selfedit == 'true') {
            $this->moufManager = MoufManager::getMoufManager();
        } else {
            $this->moufManager = MoufManager::getMoufManagerHiddenInstance();
        }

        $constants = $this->moufManager->getConfigManager()->getDefinedConstants();
        $this->debugMode = $constants['DEBUG'];

        $proxy = new InstanceProxy($name);
        $this->sql = $proxy->getSchemaUpdateSQL();
        if (empty($this->sql) && $installMode == 1) {
            InstallUtils::continueInstall($selfedit == 'true');

            return;
        }
        if($this->moufManager->issetVariable("doctrine_".$name."_generatePatch")) {

            $this->generatePatch = $this->moufManager->getVariable("doctrine_" . $name . "_generatePatch");
        }
        $this->contentBlock->addFile(__DIR__.'/../views/install2.php', $this);
        $this->template->toHtml();
    }
Displays the "schema generation screen".

@Action
@Logged

@param string $selfedit If true, the name of the component must be a component from the Mouf framework itself (internal use only)