Skip to content

RootNode query does not return the correct node (returns null) #48

@breadlesscode

Description

@breadlesscode

Hi,

first thanks for this great Package. I really like the idea of storing the nodes outside the normal node tree. ❤️

But in my current setup the query for finding the current root node doesn't work. Everytime the getRootNode() Method is called, a new root node is created. I found this code lines with the todo comment. Is it a known problem?

// return existing root-node
//
// TODO: Find a better way to determine the root node
$taxonomyDataRootNodeData = $this->nodeDataRepository->findOneByPath(
'/' . $this->getRootNodeName(),
$context->getWorkspace()
);

I'm looking for a better way to query the root node, but found nothing. Any ideas why this returns null?

I'm trying to fix it, but I don't know if I can.

Versions:
neos/neos 7.2.0
neos/neos-ui 7.2.1

And thanks again for the work :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions