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

Phantom persistence on relationship #start_node #186

Closed
pehrlich opened this issue Apr 16, 2012 · 3 comments
Closed

Phantom persistence on relationship #start_node #186

pehrlich opened this issue Apr 16, 2012 · 3 comments

Comments

@pehrlich
Copy link
Contributor

jruby-1.6.7 :018 > u = User.first
#<User:0x0000819c
jruby-1.6.7 :019 > r = u.rels2(:watching)
jruby-1.6.7 :020 > r.inspect
"Rel 509 (User 141)-[:watching]->(User 104)"

jruby-1.6.7 :023 > r.start_node = User.find(6)
jruby-1.6.7 :023 > r.save
true
jruby-1.6.7 :024 > r.inspect
"Rel 509 (User 6)-[:watching]->(User 104)"

jruby-1.6.7 :027 > r = u.rels2(:watching)
jruby-1.6.7 :028 > r.inspect
"Rel 509 (User 141)-[:watching]->(User 104)"
> Neo4j::VERSION
"2.0.0.alpha.4"
@andreasronge
Copy link
Member

Not sure what we should do. Maybe the start_node= method should be private, or throw an exception ?
WDYT ?

@pehrlich
Copy link
Contributor Author

What would it take to make it work? Can we ask #neo4j for a method for this?

Destroying and recreating a new relationship under the hood transparently would be a pretty bad idea...

Where is start_node= used now? Does it need to exist?

Private and/or exception sound like a good answer

@andreasronge
Copy link
Member

closed by abfeb70

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

No branches or pull requests

2 participants