Skip to content

Commit

Permalink
Fix for 2.2.0-RC1
Browse files Browse the repository at this point in the history
  • Loading branch information
cheerfulstoic committed Mar 16, 2015
1 parent b9ad598 commit f8dba43
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/neo4j/active_node/dependent/query_proxy_methods.rb
Expand Up @@ -34,7 +34,10 @@ def unique_nodes(association, self_identifer, other_node, other_rel)

query.with(identity).proxy_as_optional(caller.class, self_identifer)
.send("#{association.name}", other_node, other_rel)
.where("NOT EXISTS((#{self_identifer})#{primary_rel}(#{other_node})#{inverse_rel}())")
.query
.match(:other_parent_node)
.where("NOT((#{self_identifer})#{primary_rel}(#{other_node})#{inverse_rel}(other_parent_node))")
.proxy_as(association.target_class, other_node)
end
end
end
Expand Down

0 comments on commit f8dba43

Please sign in to comment.