File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -287,9 +287,9 @@ the empty values will be kept.
287
287
to learn why this is necessary.
288
288
289
289
A value is deleted from the collection only if the normalized value is ``null ``.
290
- However, you can also set the option value to a `` callable `` , which will be called
291
- for each value in the submitted collection. The `` callable `` should return
292
- whether or not a value must be removed from the collection. For example::
290
+ However, you can also set the option value to a callable, which will be executed
291
+ for each value in the submitted collection. If the callable returns `` false ``,
292
+ the value is removed from the collection. For example::
293
293
294
294
use Symfony\Component\Form\Extension\Core\Type\CollectionType;
295
295
// ...
@@ -301,11 +301,11 @@ whether or not a value must be removed from the collection. For example::
301
301
},
302
302
));
303
303
304
- Using a `` callable `` is particularly useful in case of a compound form type
305
- which may have complex conditions for being empty.
304
+ Using a callable is particularly useful in case of compound form types, which
305
+ may define complex conditions for considering them empty.
306
306
307
307
.. versionadded :: 3.4
308
- Using a `` callable `` as an option value was introduced in Symfony 3.4.
308
+ Using a callable for the `` delete_empty `` option was introduced in Symfony 3.4.
309
309
310
310
entry_options
311
311
~~~~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments