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 @@ -105,6 +105,13 @@ the `query_builder`_ option::
105
105
'choice_label' => 'username',
106
106
]);
107
107
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
+
108
115
.. _reference-forms-entity-choices :
109
116
110
117
Using Choices
You can’t perform that action at this time.
0 commit comments