Skip to content

Update associations.rst #13485

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 6, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions doctrine/associations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,9 @@ config.

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

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

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