Skip to content

Commit ac47a4d

Browse files
committed
Merge pull request #1764 from aequasi/one-to-many-reverse
Added a note about oneToMany relationships
2 parents 5857247 + df4e70b commit ac47a4d

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)