Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit df4e70b

Browse filesBrowse 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
Copy full SHA for df4e70b

File tree

Expand file treeCollapse file tree

1 file changed

+7
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-0
lines changed

‎cookbook/doctrine/reverse_engineering.rst

Copy file name to clipboardExpand all lines: cookbook/doctrine/reverse_engineering.rst
+7Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.