Skip to content

Commit

Permalink
Merge pull request #53 from DFoxinator/deadlockretry
Browse files Browse the repository at this point in the history
relations - set type in query
  • Loading branch information
DFoxinator authored Apr 9, 2023
2 parents 08afe03 + 2054de8 commit 444314a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ORM/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ public function loadRelationsForNode(NodeModelAbstract $node, array $relation_ty
$query = '
MATCH (n:' . $entity . '{' . $node_id_info['name'] . ':$id})
WITH n
MATCH (n)' . $left_arrow . '-[r:' . $relation_info['related_type']::ENTITY . ']-' . $right_arrow . '(other)
MATCH (n)' . $left_arrow . '-[r:' . $relation_info['related_type']::ENTITY . ']-' . $right_arrow . '(other:' . $relation_info['entity_type']::ENTITY . ')
RETURN other as rel_node, r as rel_rel, $rel_type as rel_type';

$params = [
Expand Down

0 comments on commit 444314a

Please sign in to comment.