We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 819495c commit 195ed65Copy full SHA for 195ed65
reference/forms/types/options/by_reference.rst.inc
@@ -31,7 +31,7 @@ Notice that ``setAuthor()`` is not called. The author is modified by reference.
31
If you set ``by_reference`` to false, submitting looks like this::
32
33
$article->setTitle('...');
34
- $author = $article->getAuthor();
+ $author = clone $article->getAuthor();
35
$author->setName('...');
36
$author->setEmail('...');
37
$article->setAuthor($author);
0 commit comments