Minor - removing unused commands in the entity generator.

skala
Julio Montoya 12 years ago
parent 371e73d1d5
commit 44fd684d25
  1. 7
      tests/doctrine_console/cli-config.php
  2. 8
      tests/doctrine_console/doctrine.php

@ -122,7 +122,7 @@ foreach ($connectionOptions as $name => $connection) {
/*
To generate doctrine2 entities you must:
cd /var/www/chamilo11/tests/doctrine_console
cd /var/www/chamilo/tests/doctrine_console
Delete old mappings/entities
@ -135,12 +135,15 @@ sudo mkdir mapping generated repository
You can add a Namespace if you want to with: --namespace "Entity"
sudo php5 doctrine.php orm:convert-mapping --force --from-database --namespace "Entity" annotation mapping
with no namepsace
with no namespace
sudo php5 doctrine.php orm:convert-mapping --force --from-database annotation mapping
1. Generate entities
sudo rm -R /var/www/chamilogits/tests/doctrine_console/mapping/Class.php
sudo php5 doctrine.php orm:generate-entities --generate-annotations="true" generated
Validate schema

@ -43,13 +43,13 @@ $cli->addCommands(array(
new \Doctrine\DBAL\Migrations\Tools\Console\Command\VersionCommand(),
// Chamilo commands
new ChamiloLMS\Command\Database\UpgradeCommand(),
/*new ChamiloLMS\Command\Database\UpgradeCommand(),
new ChamiloLMS\Command\Database\InstallCommand(),
new ChamiloLMS\Command\Database\StatusCommand(),
new ChamiloLMS\Command\Database\SetupCommand(),
new ChamiloLMS\Command\Database\SetupCommand(),*/
// Chash commands
new Chash\Command\Database\RunSQLCommand(),
/*new Chash\Command\Database\RunSQLCommand(),
new Chash\Command\Database\DumpCommand(),
new Chash\Command\Database\RestoreCommand(),
new Chash\Command\Database\SQLCountCommand(),
@ -58,7 +58,7 @@ $cli->addCommands(array(
new Chash\Command\Files\CleanTempFolderCommand(),
new Chash\Command\Files\CleanConfigFiles(),
new Chash\Command\Translation\ExportLanguageCommand(),
new Chash\Command\Translation\ImportLanguageCommand()
new Chash\Command\Translation\ImportLanguageCommand()*/
));
$cli->run();

Loading…
Cancel
Save