8000 Added caution block under delete_empty to warn the developer when he try to activate delete_empty for collections of compound forms by murilolobato · Pull Request #7767 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Added caution block under delete_empty to warn the developer when he try to activate delete_empty for collections of compound forms #7767

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 21, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Applied reviewer suggestion
  • Loading branch information
murilolobato authored Apr 29, 2017
commit ce30e472e3ea3d2d7c4cc74dc08ec835300f7461
6 changes: 3 additions & 3 deletions reference/forms/types/collection.rst
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,9 @@ the empty values will be kept.
.. caution::

The ``delete_empty`` option only removes items when the normalized value is
``null``. If your `type`_ is a compound form type, you must either set the
``required`` option to ``false`` or set the ``empty_data`` option to ``null``.
Both of these options can be set inside `options`_. See
``null``. If the nested `type`_ is a compound form type, you must either set
the ``required`` option to ``false`` or set the ``empty_data`` option to
``null``. Both of these options can be set inside `options`_. See
:ref:`form's empty_data option <reference-form-option-empty-data>` to learn
why this is necessary.

Expand Down
0