8000 Merge branch '4.4' into 5.0 · symfony/symfony-docs@36eac11 · GitHub
[go: up one dir, main page]

Skip to content

Commit 36eac11

Browse files
committed
Merge branch '4.4' into 5.0
* 4.4: [Form] Better explicit cloning with "by_reference" option
2 parents ea5b5d9 + efc5c2e commit 36eac11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/forms/types/options/by_reference.rst.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ If you set ``by_reference`` to false, submitting looks like this::
4141
$author->setEmail('...');
4242
$article->setAuthor($author);
4343

44-
So, all that ``by_reference=false`` really does is force the framework to
45-
call the setter on the parent object.
44+
So, all that ``by_reference=false`` really does is that it clones the object,
45+
which enforces the framework to call the setter on the parent object.
4646

4747
Similarly, if you're using the :doc:`CollectionType </reference/forms/types/collection>`
4848
field where your underlying collection data is an object (like with

0 commit comments

Comments
 (0)
0