Skip to content

Commit efc5c2e

Browse files
committed
Merge branch '3.4' into 4.4
* 3.4: [Form] Better explicit cloning with "by_reference" option
2 parents d4a2013 + da7b840 commit efc5c2e

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)