8000 minor #12046 [Form] Mention that by_reference only works in English (… · symfony/symfony-docs@3cd34b1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3cd34b1

Browse files
committed
minor #12046 [Form] Mention that by_reference only works in English (javiereguiluz)
This PR was merged into the 3.4 branch. Discussion ---------- [Form] Mention that by_reference only works in English Fixes #6681. Commits ------- f81f76c [Form] Mention that by_reference only works in English
2 parents 734cfb2 + f81f76c commit 3cd34b1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

form/form_collections.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,12 @@ you will learn about next!).
445445
otherwise the form will still use ``setTag()`` even if ``by_reference`` is ``false``.
446446
You'll learn more about the ``removeTag()`` method later in this article.
447447

448+
.. caution::
449+
450+
Symfony can only make the plural-to-singular conversion (e.g. from the
451+
``tags`` property to the ``addTag()`` method) for English words. Code
452+
written in any other language won't work as expected.
453+
448454
.. sidebar:: Doctrine: Cascading Relations and saving the "Inverse" side
449455

450456
To save the new tags with Doctrine, you need to consider a couple more

0 commit comments

Comments
 (0)
0