Skip to content

Commit df4e70b

Browse files
committed
Added a note about oneToMany relationships
Added a note about the oneToMany relationships in the Reversed Engineering section of the doctrine cookbook
1 parent e1be4d1 commit df4e70b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cookbook/doctrine/reverse_engineering.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,13 @@ The generated ``BlogPost.dcm.xml`` metadata file looks as follows:
9292
</entity>
9393
</doctrine-mapping>
9494
95+
.. note::
96+
97+
If you have ``oneToMany`` relationships between your entities,
98+
you will need to edit the generated ``xml`` or ``yml`` files to add
99+
a section on the specific entities for ``oneToMany`` defining the
100+
``inversedBy`` and the ``mappedBy`` pieces.
101+
95102
Once the metadata files are generated, you can ask Doctrine to import the
96103
schema and build related entity classes by executing the following two commands.
97104

0 commit comments

Comments
 (0)