Skip to content
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

Clarify by_reference use #6923

Closed
wants to merge 2 commits into from
Closed

Clarify by_reference use #6923

wants to merge 2 commits into from

Conversation

jxmallett
Copy link
Contributor

I'd like to make it clear that by_reference must be set to false if the developer requires that an entity's setter method be called.

I'd like to make it clear that `by_reference` must be set to `false` if the developer requires that an entity's setter method be called.
@@ -5,7 +5,7 @@ by_reference

In most cases, if you have a ``name`` field, then you expect ``setName()``
to be called on the underlying object. In some cases, however, ``setName()``
may *not* be called. Setting ``by_reference`` ensures that the setter is
may *not* be called. Setting ``by_reference=false`` ensures that the setter is
called in all cases.
Copy link
Contributor

@HeahDude HeahDude Aug 29, 2016

Choose a reason for hiding this comment

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

Actually in this case the setter setName is called in all case. Would be better to make it more explicit too by replacing it by:

In most cases, if you have an ``author`` field, then you expect ``setAuthor()...``

@HeahDude
Copy link
Contributor

Thank you for improving the docs :)

Status: needs work

@HeahDude
Copy link
Contributor

LGTM 👍

Status: reviewed

@xabbuh
Copy link
Member

xabbuh commented Sep 21, 2016

Thank you @jxmallett.

xabbuh added a commit that referenced this pull request Sep 21, 2016
This PR was submitted for the 3.1 branch but it was merged into the 2.7 branch instead (closes #6923).

Discussion
----------

Clarify by_reference use

I'd like to make it clear that `by_reference` must be set to `false` if the developer requires that an entity's setter method be called.

Commits
-------

6675692 Clarify by_reference use
@xabbuh xabbuh closed this Sep 21, 2016
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.

None yet

4 participants