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 4
4
How to Generate Entities from an Existing Database
5
5
==================================================
6
6
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
+
7
15
When starting work on a brand new project that uses a database, two different
8
16
situations comes naturally. In most cases, the database model is designed
9
17
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
54
62
metadata files. Metadata files describe the entity class to generate based on
55
63
table fields.
56
64
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
-
63
65
.. code-block :: terminal
64
66
65
67
$ php bin/console doctrine:mapping:import --force AppBundle xml
You can’t perform that action at this time.
0 commit comments