From 2054de8c7d91221ea6882be327e7b991e306afbb Mon Sep 17 00:00:00 2001 From: David Fox Date: Sun, 9 Apr 2023 00:57:15 -0400 Subject: [PATCH] relations - set type in query --- src/ORM/Manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ORM/Manager.php b/src/ORM/Manager.php index d457e0c..24ce2f2 100644 --- a/src/ORM/Manager.php +++ b/src/ORM/Manager.php @@ -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 = [