SolveConsole/Controllers/DbController.php
public function updateAllAction() {
        QC::executeSQL('SET FOREIGN_KEY_CHECKS = 0');
        ModelOperator::getInstance(DC::getEnvironment()->getUserClassesRoot().'db/')->updateDBForAllModels();
        ModelOperator::getInstance()->generateAllModelClasses();
        $this->writeln('DB updated');
    }
public function updateAllAction() {
        QC::executeSQL('SET FOREIGN_KEY_CHECKS = 0');
        ModelOperator::getInstance(DC::getEnvironment()->getUserClassesRoot().'db/')->updateDBForAllModels();
        ModelOperator::getInstance()->generateAllModelClasses();
        $this->writeln('DB updated');
    }
public function updateAllAction ( ) { QC :: executeSQL ( 'SET FOREIGN_KEY_CHECKS = 0' ) ; ModelOperator :: getInstance ( DC :: getEnvironment ( ) -> getUserClassesRoot ( ) . 'db/' ) -> updateDBForAllModels ( ) ; ModelOperator :: getInstance ( ) -> generateAllModelClasses ( ) ; $ this -> writeln ( 'DB updated' ) ; }
Update database and models
Update database and models