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.
450
450
all at once (via a *join *), Doctrine will return the *true * ``Category ``
451
451
object, since nothing needs to be lazily loaded.
452
452
453
+ .. _doctrine-associations-join-query :
454
+
453
455
Joining Related Records
454
456
-----------------------
455
457
Original file line number Diff line number Diff line change @@ -110,6 +110,13 @@ the `query_builder`_ option::
110
110
'choice_label' => 'username',
111
111
]);
112
112
113
+ .. note ::
114
+
115
+ Using form collections may result in making too many database requests to
116
+ fetch related entities. This is known as the *"N + 1 query problem" * and it
117
+ can be solved by :ref: `joining related records <doctrine-associations-join-query >`
118
+ when querying for Doctrine associations.
119
+
113
120
.. _reference-forms-entity-choices :
114
121
115
122
Using Choices
You can’t perform that action at this time.
0 commit comments