Fix Cookbook XML Getting Started still refering to old Doctrine Console
This commit is contained in:
parent
4232509427
commit
d2d32e5439
@ -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:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user