Skip to content

Commit d96b062

Browse files
committed
[Form] Better explicit cloning with "by_reference" option
1 parent 15b9b9b commit d96b062

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
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)