Node: Add __unbound__ parent node in getPaths() if there are no parents

fixes #245
This commit is contained in:
Johannes Meyer 2020-02-26 09:00:24 +01:00
parent 3772950f6e
commit 4e6e1f0819

View file

@ -421,6 +421,8 @@ abstract class Node
if (! $this instanceof ImportedNode && $this->getBpConfig()->hasRootNode($this->getName())) {
$paths[] = [$differentConfig ? $this->getIdentifier() : $this->getName()];
} elseif (! $this->hasParents()) {
$paths[] = ['__unbound__', $differentConfig ? $this->getIdentifier() : $this->getName()];
}
return $paths;