From c5adfca0ed7dc5f84573d42b0d2129b0a4c1863e Mon Sep 17 00:00:00 2001 From: Mark Fox Date: Fri, 11 Oct 2013 15:16:46 -0700 Subject: [PATCH 1/3] Clarified tutorial context around introduction of `orm:schema-tool:*` commands See: http://stackoverflow.com/questions/17473225/doctrine2-no-metadata-classes-to-process for evidence of this confusion --- docs/en/tutorials/getting-started.rst | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/en/tutorials/getting-started.rst b/docs/en/tutorials/getting-started.rst index 4f169cd94..e756240d3 100644 --- a/docs/en/tutorials/getting-started.rst +++ b/docs/en/tutorials/getting-started.rst @@ -197,9 +197,12 @@ Doctrine command-line tool: $ cd project/ $ php vendor/bin/doctrine orm:schema-tool:create -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: +At this point no entitiy metadata exists in `src` so you will see a message like +"No Metadata Classes to process." — we'll add a Product entity and metadata soon. + +You should be aware that during the development process you'll need to keep +the database schema in sync with changes to your Entities metadata. +You can easily recreate the database: :: From 126cd0bac2f6b72302757412a68b4845060d643a Mon Sep 17 00:00:00 2001 From: Mark Fox Date: Fri, 11 Oct 2013 15:20:53 -0700 Subject: [PATCH 2/3] further tweaking of last commit --- docs/en/tutorials/getting-started.rst | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/en/tutorials/getting-started.rst b/docs/en/tutorials/getting-started.rst index e756240d3..174528197 100644 --- a/docs/en/tutorials/getting-started.rst +++ b/docs/en/tutorials/getting-started.rst @@ -198,10 +198,12 @@ Doctrine command-line tool: $ php 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." — we'll add a Product entity and metadata soon. +"No Metadata Classes to process." Don't worry, we'll create a Product entity and +corresponding metadata in the next section. + +You should be aware that during the development process you'll periodically want +to synchronize your database schema with your Entities metadata. -You should be aware that during the development process you'll need to keep -the database schema in sync with changes to your Entities metadata. You can easily recreate the database: :: From 2f8b0801cc2746fc59b058661b44bb0f48a511b8 Mon Sep 17 00:00:00 2001 From: Mark Fox Date: Fri, 11 Oct 2013 15:22:39 -0700 Subject: [PATCH 3/3] further tweaking of last commit pt.2 --- docs/en/tutorials/getting-started.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/tutorials/getting-started.rst b/docs/en/tutorials/getting-started.rst index 174528197..5b57a477d 100644 --- a/docs/en/tutorials/getting-started.rst +++ b/docs/en/tutorials/getting-started.rst @@ -201,8 +201,8 @@ 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 corresponding metadata in the next section. -You should be aware that during the development process you'll periodically want -to synchronize your database schema with your Entities metadata. +You should be aware that during the development process you'll periodically need +to update your database schema to be in sync with your Entities metadata. You can easily recreate the database: