Commit 50694f2
committed
minor #48342 [Form] Call
This PR was merged into the 6.3 branch.
Discussion
----------
[Form] Call `getChoicesForValues()` once, to prevent several SQL queries
| Q | A
| ------------- | ---
| Branch? | 6.3
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Tickets | -
| License | MIT
| Doc PR | -
The feature "Keeping valid submitted choices when additional choices are submitted" adds some overload to list the valid choices.
With options set to `multiple=true`, `expanded=false` and using an `EntityType`, it performs several queries, one for each value.
Commits
-------
d5f11e0 [Form] Call getChoicesForValues() once, to prevent several SQL queriesgetChoicesForValues() once, to prevent several SQL queries (elementaire)File tree
1 file changed
+4
-5
lines changed- src/Symfony/Component/Form/Extension/Core/Type
1 file changed
+4
-5
lines changedLines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
152 | 151 | | |
153 | 152 | | |
154 | 153 | | |
| |||
0 commit comments