neos / contentrepository-development-collection

Work in Progress on the Event Sourced Content Repository as installable set of packages
4 stars 9 forks source link

ContentSubgraph::findNodeByPath() only supports relative paths #165

Open bwaidelich opened 3 years ago

bwaidelich commented 3 years ago

Description

ContentSubgraph::findNodeByPath() returns null whenever it is passed an absolute node path

Steps to Reproduce

In a fresh Demo site installation run

$node = $this->subgraph->findNodeByPath(NodePath::fromString('/sites/neosdemo/features'), $someNodeAggregateIdentifier);

Expected behavior

$node is an instance of NodeInterface representing the Features node.

Actual behavior

$node is null