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 @@ -355,6 +355,8 @@ to the given ``Category`` object via their ``category_id`` value.
355
355
all at once (via a *join *), Doctrine will return the *true * ``Category ``
356
356
object, since nothing needs to be lazily loaded.
357
357
358
+ .. _doctrine-associations-join-query :
359
+
358
360
Joining Related Records
359
361
-----------------------
360
362
Original file line number Diff line number Diff line change @@ -99,6 +99,13 @@ the `query_builder`_ option::
99
99
'choice_label' => 'username',
100
100
]);
101
101
102
+ .. note ::
103
+
104
+ Using form collections may result in making too many database requests to
105
+ fetch related entities. This is known as the *"N + 1 query problem" * and it
106
+ can be solved by :ref: `joining related records <doctrine-associations-join-query >`
107
+ when querying for Doctrine associations.
108
+
102
109
.. _reference-forms-entity-choices :
103
110
104
111
Using Choices
You can’t perform that action at this time.
0 commit comments