File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 44How 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+
715When starting work on a brand new project that uses a database, two different
816situations comes naturally. In most cases, the database model is designed
917and 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
5462metadata files. Metadata files describe the entity class to generate based on
5563table 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
You can’t perform that action at this time.
0 commit comments