From 04869c3355266088062fcb3ee1a40045373e8ea7 Mon Sep 17 00:00:00 2001 From: Ivan Rey Date: Sun, 6 Feb 2011 15:48:42 -0800 Subject: [PATCH] Added tip to create DoctrineMigrations folder before running the generate command. Fixed the bundle parameter: removed Sensio\ --- guides/doctrine/migrations/overview.rst | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/guides/doctrine/migrations/overview.rst b/guides/doctrine/migrations/overview.rst index 7ef3d2382cb..d5522aa5114 100644 --- a/guides/doctrine/migrations/overview.rst +++ b/guides/doctrine/migrations/overview.rst @@ -31,7 +31,7 @@ status of a bundle migrations you can run the ``status`` command: .. code-block:: bash - $ php app/console doctrine:migrations:status --bundle="Sensio\HelloBundle" + $ php app/console doctrine:migrations:status --bundle="HelloBundle" == Configuration @@ -51,9 +51,13 @@ class: .. code-block:: bash - $ php app/console doctrine:migrations:generate --bundle="Sensio\HelloBundle" + $ php app/console doctrine:migrations:generate --bundle="HelloBundle" Generated new migration class to "/path/to/symfony-sandbox/src/Bundle/HelloBundle/DoctrineMigrations/Version20100621140655.php" +.. tip:: + + You may need to create the folder "/path/to/symfony-sandbox/src/Bundle/HelloBundle/DoctrineMigrations" before running the doctrine:migrations:generate command. + Have a look at the newly generated migration class and you will see something like the following:: @@ -80,7 +84,7 @@ that you have one new migration to execute: .. code-block:: bash - $ php app/console doctrine:migrations:status --bundle="Sensio\HelloBundle" + $ php app/console doctrine:migrations:status --bundle="HelloBundle" == Configuration @@ -104,6 +108,6 @@ migrate: .. code-block:: bash - $ php app/console doctrine:migrations:migrate --bundle="Sensio\HelloBundle" + $ php app/console doctrine:migrations:migrate --bundle="HelloBundle" .. _documentation: http://www.doctrine-project.org/projects/migrations/2.0/docs/en