From 8f1950ca515d5c8a8090f261b5623da5682abaff Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Fri, 2 Feb 2018 08:44:27 +0100 Subject: [PATCH 1/2] Explain that doctrine:mapping:import will be removed soon --- doctrine/reverse_engineering.rst | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/doctrine/reverse_engineering.rst b/doctrine/reverse_engineering.rst index a77b8c48b34..8b2a8a2c6fb 100644 --- a/doctrine/reverse_engineering.rst +++ b/doctrine/reverse_engineering.rst @@ -4,6 +4,14 @@ How to Generate Entities from an Existing Database ================================================== +.. caution:: + + The feature explained in this article doesn't work in modern Symfony + applications that have no bundles. The workaround, is to temporarily create + a bundle. See `doctrine/doctrine#729`_ for details. Moreover, this feature + to generate entities from existing databases will be completely removed in + the next Doctrine version. + When starting work on a brand new project that uses a database, two different situations comes naturally. In most cases, the database model is designed and built from scratch. Sometimes, however, you'll start with an existing and @@ -54,12 +62,6 @@ is to ask Doctrine to introspect the database and generate the corresponding metadata files. Metadata files describe the entity class to generate based on table fields. -.. caution:: - - If your application has *no* bundles, then this command will currently fail! - The workaround, is to temporarily create a bundle. See `doctrine/doctrine#729`_ - for details. - .. code-block:: terminal $ php bin/console doctrine:mapping:import --force AppBundle xml From 2c238aaf69fb33bcb42cb7d6a2d9bfb055e9a20b Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Fri, 2 Feb 2018 13:33:57 +0100 Subject: [PATCH 2/2] Typo --- doctrine/reverse_engineering.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doctrine/reverse_engineering.rst b/doctrine/reverse_engineering.rst index 8b2a8a2c6fb..e0f147c5b58 100644 --- a/doctrine/reverse_engineering.rst +++ b/doctrine/reverse_engineering.rst @@ -7,7 +7,7 @@ How to Generate Entities from an Existing Database .. caution:: The feature explained in this article doesn't work in modern Symfony - applications that have no bundles. The workaround, is to temporarily create + applications that have no bundles. The workaround is to temporarily create a bundle. See `doctrine/doctrine#729`_ for details. Moreover, this feature to generate entities from existing databases will be completely removed in the next Doctrine version.