Skip to content

DATAMONGO-1287 - Fix double fetching for lazy DbRef used in ctor. #335

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

Closed
wants to merge 2 commits into from

Conversation

christophstrobl
Copy link
Member

We now check properties for their usage as ctor arguments, that might already have been resolved, before setting the actual value. This prevents turning already eagerly fetched DBRefs back into LazyLoadingProxies.

Resolves part covered in #322 by adding dedicated tests and decoupling from DATAMONGO-1271.

…azy DbRef to change them afterwards by proxies.

Prepare issue branch.
We now check properties for their usage as ctor arguments, that might already have been resolved, before setting the actual value. This prevents turning already eagerly fetched DBRefs back into LazyLoadingProxies.

Relates to original PR #322.
christophstrobl added a commit that referenced this pull request Nov 20, 2015
…onstructor.

We now check properties for their usage as constructor arguments, that might already have been resolved, before setting the actual value. This prevents turning already eagerly fetched DBRefs back into LazyLoadingProxies.

Original pull request: #335.
Related pull request: #322.
christophstrobl added a commit that referenced this pull request Nov 20, 2015
…onstructor.

We now check properties for their usage as constructor arguments, that might already have been resolved, before setting the actual value. This prevents turning already eagerly fetched DBRefs back into LazyLoadingProxies.

Original pull request: #335.
Related pull request: #322.
@odrotbohm odrotbohm closed this Nov 20, 2015
@odrotbohm odrotbohm deleted the issue/DATAMONGO-1287 branch November 20, 2015 12:39
christophstrobl added a commit that referenced this pull request Nov 20, 2015
…onstructor.

We now check properties for their usage as constructor arguments, that might already have been resolved, before setting the actual value. This prevents turning already eagerly fetched DBRefs back into LazyLoadingProxies.

Original pull request: #335.
Related pull request: #322.
odrotbohm added a commit that referenced this pull request Nov 23, 2015
… arguments.

As per discussion on the ticket we now omit looking up the value for an association being used as constructor argument as the simple check whether the currently handled property is a constructor argument is sufficient to potentially skip handling the value.

Related pull requests: #335, #322.
odrotbohm added a commit that referenced this pull request Nov 23, 2015
… arguments.

As per discussion on the ticket we now omit looking up the value for an association being used as constructor argument as the simple check whether the currently handled property is a constructor argument is sufficient to potentially skip handling the value.

Related pull requests: #335, #322.
odrotbohm added a commit that referenced this pull request Nov 23, 2015
… arguments.

As per discussion on the ticket we now omit looking up the value for an association being used as constructor argument as the simple check whether the currently handled property is a constructor argument is sufficient to potentially skip handling the value.

Related pull requests: #335, #322.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants