Skip to content

Commit ce9ce73

Browse files
committed
Explain that doctrine:mapping:import will be removed soon
1 parent 42d29f8 commit ce9ce73

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

doctrine/reverse_engineering.rst

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44
How to Generate Entities from an Existing Database
55
==================================================
66

7+
.. caution::
8+
9+
The feature explained in this article doesn't work in modern Symfony
10+
applications that have no bundles. The workaround is to temporarily create
11+
a bundle. See `doctrine/doctrine#729`_ for details. Moreover, this feature
12+
to generate entities from existing databases will be completely removed in
13+
the next Doctrine version.
14+
715
When starting work on a brand new project that uses a database, two different
816
situations comes naturally. In most cases, the database model is designed
917
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
5462
metadata files. Metadata files describe the entity class to generate based on
5563
table fields.
5664

57-
.. caution::
58-
59-
If your application has *no* bundles, then this command will currently fail!
60-
The workaround, is to temporarily create a bundle. See `doctrine/doctrine#729`_
61-
for details.
62-
6365
.. code-block:: terminal
6466
6567
$ php bin/console doctrine:mapping:import --force AppBundle xml

0 commit comments

Comments
 (0)