From f81f76c91c032afbdb9bd7a48eef75559c8ab8b3 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Mon, 29 Jul 2019 09:41:40 +0200 Subject: [PATCH] [Form] Mention that by_reference only works in English --- form/form_collections.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/form/form_collections.rst b/form/form_collections.rst index 38700725174..cc7e3843f5f 100644 --- a/form/form_collections.rst +++ b/form/form_collections.rst @@ -445,6 +445,12 @@ you will learn about next!). otherwise the form will still use ``setTag()`` even if ``by_reference`` is ``false``. You'll learn more about the ``removeTag()`` method later in this article. +.. caution:: + + Symfony can only make the plural-to-singular conversion (e.g. from the + ``tags`` property to the ``addTag()`` method) for English words. Code + written in any other language won't work as expected. + .. sidebar:: Doctrine: Cascading Relations and saving the "Inverse" side To save the new tags with Doctrine, you need to consider a couple more