Skip to content

Commit 44dd7c2

Browse files
committed
Merge branch '5.0'
* 5.0: [Form] Better explicit cloning with "by_reference" option
2 parents b12d0ba + 36eac11 commit 44dd7c2

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)