Loading config/autoload/global.php +10 −5 Original line number Diff line number Diff line Loading @@ -409,14 +409,19 @@ return array( // php vendor/bin/doctrine-module orm:schema-tool:update --dump-sql --complete // Voir aussi https://github.com/doctrine/DoctrineBundle/pull/935 // On ne "cache" la table doctrine_migration_versions que pour la commande // doctrine-module orm:schema-tool:update // On ne "cache" la table doctrine_migration_versions que pour // - la commande doctrine-module orm:schema-tool:update // - la commande check:config // - la page admin qui vérifie la configuration : /administration/check_config // parce que sinon, si les commandes de doctrine migration ne voient plus cette table // alors elles essaient de la recréer à chaque fois et elles échouent car la table existe déjà. if (!isset($_SERVER['argv']) if ((!isset($_SERVER['REQUEST_URI']) || $_SERVER['REQUEST_URI'] !== "/administration/check_config") && (!isset($_SERVER['argv']) || !is_array($_SERVER['argv']) || !in_array('vendor/bin/doctrine-module', $_SERVER['argv'], true) || !in_array('orm:schema-tool:update', $_SERVER['argv'], true)) { || (!in_array('check:config', $_SERVER['argv'], true) && (!in_array('vendor/bin/doctrine-module', $_SERVER['argv'], true) || !in_array('orm:schema-tool:update', $_SERVER['argv'], true))))) { return true; } Loading Loading
config/autoload/global.php +10 −5 Original line number Diff line number Diff line Loading @@ -409,14 +409,19 @@ return array( // php vendor/bin/doctrine-module orm:schema-tool:update --dump-sql --complete // Voir aussi https://github.com/doctrine/DoctrineBundle/pull/935 // On ne "cache" la table doctrine_migration_versions que pour la commande // doctrine-module orm:schema-tool:update // On ne "cache" la table doctrine_migration_versions que pour // - la commande doctrine-module orm:schema-tool:update // - la commande check:config // - la page admin qui vérifie la configuration : /administration/check_config // parce que sinon, si les commandes de doctrine migration ne voient plus cette table // alors elles essaient de la recréer à chaque fois et elles échouent car la table existe déjà. if (!isset($_SERVER['argv']) if ((!isset($_SERVER['REQUEST_URI']) || $_SERVER['REQUEST_URI'] !== "/administration/check_config") && (!isset($_SERVER['argv']) || !is_array($_SERVER['argv']) || !in_array('vendor/bin/doctrine-module', $_SERVER['argv'], true) || !in_array('orm:schema-tool:update', $_SERVER['argv'], true)) { || (!in_array('check:config', $_SERVER['argv'], true) && (!in_array('vendor/bin/doctrine-module', $_SERVER['argv'], true) || !in_array('orm:schema-tool:update', $_SERVER['argv'], true))))) { return true; } Loading