Skip to content

Commit 43b5306

Browse files
committed
[cookbook][doctrine/reverse_engineering]changed the second command to execute from doctrine:mapping:import to doctrine:mapping:convert
1 parent de792c4 commit 43b5306

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

cookbook/doctrine/reverse_engineering.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,16 +105,14 @@ Then you should insert proper namespace in ``name`` attribute of ``entity`` elem
105105
a section on the specific entities for ``oneToMany`` defining the
106106
``inversedBy`` and the ``mappedBy`` pieces.
107107

108-
Once the metadata files are generated, you can ask Doctrine to import the
109-
schema and build related entity classes by executing the following two commands.
108+
Once the metadata files are generated, you can ask Doctrine to build related entity classes by executing the following two commands.
110109

111110
.. code-block:: bash
112111
113-
$ php app/console doctrine:mapping:import AcmeBlogBundle annotation
112+
$ php app/console doctrine:mapping:convert annotation ./src
114113
$ php app/console doctrine:generate:entities AcmeBlogBundle
115114
116-
The first command generates entity classes with an annotations mapping, but
117-
you can of course change the ``annotation`` argument to ``xml`` or ``yml``.
115+
The first command generates entity classes with an annotations mapping. But if you want to use yml or xml mapping instead of annotations, you should execute the second command only.
118116
The newly created ``BlogComment`` entity class looks as follow:
119117

120118
.. code-block:: php

0 commit comments

Comments
 (0)