Skip to content

Commit 521d4d7

Browse files
committed
minor #13485 Update associations.rst (ThomasLandauer)
This PR was merged into the 4.4 branch. Discussion ---------- Update associations.rst Added link to Doctrine's Collection docs - please double-check link syntax Commits ------- a5cb478 Update associations.rst
2 parents 5e36315 + a5cb478 commit 521d4d7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doctrine/associations.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,9 @@ config.
295295

296296
The code inside ``__construct()`` is important: The ``$products`` property must
297297
be a collection object that implements Doctrine's ``Collection`` interface.
298-
In this case, an ``ArrayCollection`` object is used. This looks and acts almost
299-
*exactly* like an array, but has some added flexibility. Just imagine that it's
300-
an ``array`` and you'll be in good shape.
298+
In this case, an [``ArrayCollection``](`Doctrine_Collections`_) object is used.
299+
This looks and acts almost *exactly* like an array, but has some added flexibility.
300+
Just imagine that it is an ``array`` and you'll be in good shape.
301301

302302
Your database is setup! Now, execute the migrations like normal:
303303

@@ -604,3 +604,4 @@ Doctrine's `Association Mapping Documentation`_.
604604
.. _`Association Mapping Documentation`: https://www.doctrine-project.org/projects/doctrine-orm/en/current/reference/association-mapping.html
605605
.. _`orphanRemoval`: https://www.doctrine-project.org/projects/doctrine-orm/en/current/reference/working-with-associations.html#orphan-removal
606606
.. _`Mastering Doctrine Relations`: https://symfonycasts.com/screencast/doctrine-relations
607+
.. _`Doctrine_Collections`: https://www.doctrine-project.org/projects/doctrine-collections/en/1.6/index.html

0 commit comments

Comments
 (0)