Skip to content

Always define __relationships__ parameter. #2704

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
michael-simons opened this issue Mar 31, 2023 · 0 comments
Closed

Always define __relationships__ parameter. #2704

michael-simons opened this issue Mar 31, 2023 · 0 comments
Assignees
Labels
type: bug A general bug

Comments

@michael-simons
Copy link
Collaborator

In #2668 storing of relationships has been optimised so that existing relationships are not always refetched. The new query always requires __relationships__ to be present. In the case of relationships with defined properties, Neo4jMappingContext#createStatementForRelationshipWithPropertiesBatch only defines that argument for new relationships, so updating relationships with properties fails.

@michael-simons michael-simons self-assigned this Mar 31, 2023
@michael-simons michael-simons added the type: bug A general bug label Mar 31, 2023
@michael-simons michael-simons added this to the 6.3.11 (2021.2.11) milestone Mar 31, 2023
michael-simons added a commit that referenced this issue Mar 31, 2023
In #2668 storing of relationships has been optimised so that existing relationships are not always refetched. The new query always requires `__relationships__` to be present. In the case of relationships with defined properties, `Neo4jMappingContext#createStatementForRelationshipWithPropertiesBatch` only defines that argument for new relationships, so updating relationships with properties fails.

Closes #2704
michael-simons added a commit that referenced this issue Mar 31, 2023
In #2668 storing of relationships has been optimised so that existing relationships are not always refetched. The new query always requires `__relationships__` to be present. In the case of relationships with defined properties, `Neo4jMappingContext#createStatementForRelationshipWithPropertiesBatch` only defines that argument for new relationships, so updating relationships with properties fails.

Closes #2704
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

No branches or pull requests

1 participant