1
0
mirror of synced 2025-01-18 22:41:43 +03:00

Fix Cookbook XML Getting Started still refering to old Doctrine Console

This commit is contained in:
beberlei 2010-08-29 10:38:57 +02:00
parent 4232509427
commit d2d32e5439

View File

@ -453,8 +453,10 @@ For the commandline tool to work a cli-config.php file has to be present in the
where you will execute the doctrine command. Its a fairly simple file:
[php]
$cliConfig = new Doctrine\Common\Cli\Configuration();
$cliConfig->setAttribute('em', $entityManager);
$helperSet = new \Symfony\Components\Console\Helper\HelperSet(array(
'em' => new \Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper($entityManager)
));
$cli->setHelperSet($helperSet);
You can then use your favorite console tool to call:
@ -462,6 +464,12 @@ You can then use your favorite console tool to call:
doctrine@my-desktop> cd myproject/
doctrine@my-desktop> doctrine orm:schema-tool:create
> **NOTE**
>
> The `doctrine` command will only be present if you installed Doctrine from PEAR.
> Otherwise you will have to dig into the `bin/doctrine.php` code of your Doctrine 2
> directory to setup your doctrine commandline client.
During the development you probably need to re-create the database several times when changing the Entity
metadata. You can then either re-create the database: