Skip to content

Commit af3adb8

Browse files
soulchainerwouterj
authored andcommitted
Update doctrine.rst
Note for «see doctrine documentation» just in section where `inversedBy` and `mappedBy` were just read. I know that five sections below there is a **More Information on Associations** section where this is a reference to this (if you dig enough, because it's referenced to other page there), but that's not enough. It's too general and too late. When you're reading this (my case, as a newcomer right now) and get to this `inversedBy` and `mappedBy` here and there isn't any direct mention about it in **Relationship Mapping Metadata** section, you felt lost. Can't understand why that is really used and what it means. And you scroll and see no direct reference about that. It breaks your learning rhythm. I had to search about this, till I found the Doctrine's documentation that I linked in that note. That cleared out the doubt. So I can continue learning. Five sections away there's a general «Read more about associations». That's ok. I will read more then. But at that moment, you need, at least, to understand, at least superficially, why that parameters are there.
1 parent 8440cea commit af3adb8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doctrine/associations.rst

+6
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,11 @@ own a collection of its related ``Product`` objects.
176176
you uncomfortable, don't worry. Just imagine that it's an ``array``
177177
and you'll be in good shape.
178178

179+
.. seealso::
180+
181+
To understand ``inversedBy`` and ``mappedBy`` usage, see Doctrine's
182+
`Association Updates` documentation.
183+
179184
.. tip::
180185

181186
The targetEntity value in the metadata used above can reference any entity
@@ -407,3 +412,4 @@ Doctrine's `Association Mapping Documentation`_.
407412
statement, which *imports* the ``ORM`` annotations prefix.
408413

409414
.. _`Association Mapping Documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/association-mapping.html
415+
.. _`Association Updates`: http://docs.doctrine-project.org/en/latest/reference/unitofwork-associations.html

0 commit comments

Comments
 (0)