Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 08f9c24

Browse files
committed
Merge branch '3.4' into 4.3
* 3.4: [Form] Mention that by_reference only works in English
2 parents 4ce9ece + 3cd34b1 commit 08f9c24

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
@@ -444,6 +444,12 @@ you will learn about next!).
444444
otherwise the form will still use ``setTag()`` even if ``by_reference`` is ``false``.
445445
You'll learn more about the ``removeTag()`` method later in this article.
446446

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

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

0 commit comments

Comments
 (0)