Skip to content

[Form] Fixed by_reference option with explicit cloning #7569

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 7, 2017

Conversation

HeahDude
Copy link
Contributor

@HeahDude HeahDude commented Mar 4, 2017

No description provided.

@HeahDude HeahDude changed the title [Form] Fixed by_reference option with explicite cloning [Form] Fixed by_reference option with explicit cloning Mar 4, 2017
@HeahDude HeahDude force-pushed the fix/form-inherit_data branch from 97f073f to 2186307 Compare March 4, 2017 21:41
@@ -31,7 +31,7 @@ Notice that ``setAuthor()`` is not called. The author is modified by reference.
If you set ``by_reference`` to false, submitting looks like this::

$article->setTitle('...');
$author = $article->getAuthor();
$author = (clone) $article->getAuthor();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very minor, but clone isn't a type cast so please remove the () to avoid confusion.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course, fixed, thanks!

@wouterj
Copy link
Member

wouterj commented Mar 5, 2017

👍
status: reviewed

@HeahDude HeahDude force-pushed the fix/form-inherit_data branch from 2186307 to 195ed65 Compare March 5, 2017 14:07
@xabbuh
Copy link
Member

xabbuh commented Mar 7, 2017

Thank you @HeahDude.

@xabbuh xabbuh merged commit 195ed65 into symfony:2.7 Mar 7, 2017
xabbuh added a commit that referenced this pull request Mar 7, 2017
…eahDude)

This PR was merged into the 2.7 branch.

Discussion
----------

[Form] Fixed by_reference option with explicit cloning

Commits
-------

195ed65 [Form] Fixed by_reference option with explicit cloning
@HeahDude HeahDude deleted the fix/form-inherit_data branch April 15, 2017 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants