File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -450,6 +450,8 @@ by adding JOINs.
450450 all at once (via a *join *), Doctrine will return the *true * ``Category ``
451451 object, since nothing needs to be lazily loaded.
452452
453+ .. _doctrine-associations-join-query :
454+
453455Joining Related Records
454456-----------------------
455457
Original file line number Diff line number Diff line change @@ -105,6 +105,13 @@ the `query_builder`_ option::
105105 'choice_label' => 'username',
106106 ]);
107107
108+ .. note ::
109+
110+ Using form collections may result in making too many database requests to
111+ fetch related entities. This is known as the *"N + 1 query problem" * and it
112+ can be solved by :ref: `joining related records <doctrine-associations-join-query >`
113+ when querying for Doctrine associations.
114+
108115.. _reference-forms-entity-choices :
109116
110117Using Choices
You can’t perform that action at this time.
0 commit comments