Skip to content

Commit 296b48a

Browse files
committed
fixed all ogm tests
1 parent fa1a93e commit 296b48a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Types/Relationship.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function toArray(): array
6868
$tbr = parent::toArray();
6969

7070
$tbr['startNodeId'] = $this->getStartNodeId();
71-
$tbr['endNodeId'] = $this->getStartNodeId();
71+
$tbr['endNodeId'] = $this->getEndNodeId();
7272

7373
return $tbr;
7474
}

tests/Integration/OGMFormatterIntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,9 +447,9 @@ public function testRelationship(string $alias): void
447447
json_encode([
448448
'id' => $result->getId(),
449449
'type' => $result->getType(),
450+
'properties' => $result->getProperties(),
450451
'startNodeId' => $result->getStartNodeId(),
451452
'endNodeId' => $result->getEndNodeId(),
452-
'properties' => $result->getProperties(),
453453
], JSON_THROW_ON_ERROR),
454454
json_encode($result, JSON_THROW_ON_ERROR)
455455
);

0 commit comments

Comments
 (0)