From 83cd44697da594d6ef5ab6b87b19679ee7e5a29a Mon Sep 17 00:00:00 2001 From: Gennadiy Litvinyuk Date: Sun, 12 Oct 2014 17:50:47 +0200 Subject: [PATCH] Fixing calls of schema-update tools composer-generated binaries should be called without php interpreter. Added reminder to update schema. --- docs/en/tutorials/getting-started.rst | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/docs/en/tutorials/getting-started.rst b/docs/en/tutorials/getting-started.rst index d0b8ec634..5be799135 100644 --- a/docs/en/tutorials/getting-started.rst +++ b/docs/en/tutorials/getting-started.rst @@ -194,7 +194,7 @@ Doctrine command-line tool: :: $ cd project/ - $ php vendor/bin/doctrine orm:schema-tool:create + $ vendor/bin/doctrine orm:schema-tool:create At this point no entitiy metadata exists in `src` so you will see a message like "No Metadata Classes to process." Don't worry, we'll create a Product entity and @@ -207,14 +207,14 @@ You can easily recreate the database: :: - $ php vendor/bin/doctrine orm:schema-tool:drop --force - $ php vendor/bin/doctrine orm:schema-tool:create + $ vendor/bin/doctrine orm:schema-tool:drop --force + $ vendor/bin/doctrine orm:schema-tool:create Or use the update functionality: :: - $ php vendor/bin/doctrine orm:schema-tool:update --force + $ vendor/bin/doctrine orm:schema-tool:update --force The updating of databases uses a Diff Algorithm for a given Database Schema, a cornerstone of the ``Doctrine\DBAL`` package, @@ -342,7 +342,7 @@ Now that we have defined our first entity, lets update the database: :: - $ php vendor/bin/doctrine orm:schema-tool:update --force --dump-sql + $ vendor/bin/doctrine orm:schema-tool:update --force --dump-sql Specifying both flags ``--force`` and ``-dump-sql`` prints and executes the DDL statements. @@ -1002,6 +1002,12 @@ class that holds the owning sides. This example has a fair overview of the most basic features of the metadata definition language. +Update your database running: +:: + + $ vendor/bin/doctrine orm:schema-tool:update --force + + Implementing more Requirements ------------------------------