Skip to content

Don't override relationships if they are different. #2198

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

meistermeier
Copy link
Collaborator

No description provided.

.bindAll(statementHolder.getProperties())
.fetchAs(Long.class).one();

if (idProperty != null) {
if (idProperty != null && isNewRelationship) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Makes sense in the Cypher prepareSaveOfRelationshipWithProperties, here I am wondering a bit if that should be || isNewRelationship

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It makes only sense to update the id value if it was not set before. It should not change, or? (please say no ;) )

@meistermeier
Copy link
Collaborator Author

Merged with 9944cf8 (master) and 91dd085 (6.0.x)

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