Neos.ContentRepository/Classes/Domain/Repository/NodeDataRepository.php
public function findByParentWithoutReduce($parentPath, Workspace $workspace)
    {
        $parentPath = strtolower($parentPath);
        $workspaces = $this->collectWorkspaceAndAllBaseWorkspaces($workspace);

        $queryBuilder = $this->createQueryBuilder($workspaces);
        $this->addParentPathConstraintToQueryBuilder($queryBuilder, $parentPath);

        $query = $queryBuilder->getQuery();
        $foundNodes = $query->getResult();

        $childNodeDepth = NodePaths::getPathDepth($parentPath) + 1;
        /** @var $addedNode NodeData */
        foreach ($this->addedNodes as $addedNode) {
            if ($addedNode->getDepth() === $childNodeDepth && NodePaths::getParentPath($addedNode->getPath()) === $parentPath && in_array($addedNode->getWorkspace(), $workspaces)) {
                $foundNodes[] = $addedNode;
            }
        }
        /** @var $removedNode NodeData */
        foreach ($this->removedNodes as $removedNode) {
            if ($removedNode->getDepth() === $childNodeDepth && NodePaths::getParentPath($removedNode->getPath()) === $parentPath && in_array($removedNode->getWorkspace(), $workspaces)) {
                $foundNodes = array_filter($foundNodes, function ($nodeData) use ($removedNode) {
                    return $nodeData !== $removedNode;
                });
            }
        }

        return $foundNodes;
    }
public function findByParentWithoutReduce($parentPath, Workspace $workspace)
    {
        $parentPath = strtolower($parentPath);
        $workspaces = $this->collectWorkspaceAndAllBaseWorkspaces($workspace);

        $queryBuilder = $this->createQueryBuilder($workspaces);
        $this->addParentPathConstraintToQueryBuilder($queryBuilder, $parentPath);

        $query = $queryBuilder->getQuery();
        $foundNodes = $query->getResult();

        $childNodeDepth = NodePaths::getPathDepth($parentPath) + 1;
        /** @var $addedNode NodeData */
        foreach ($this->addedNodes as $addedNode) {
            if ($addedNode->getDepth() === $childNodeDepth && NodePaths::getParentPath($addedNode->getPath()) === $parentPath && in_array($addedNode->getWorkspace(), $workspaces)) {
                $foundNodes[] = $addedNode;
            }
        }
        /** @var $removedNode NodeData */
        foreach ($this->removedNodes as $removedNode) {
            if ($removedNode->getDepth() === $childNodeDepth && NodePaths::getParentPath($removedNode->getPath()) === $parentPath && in_array($removedNode->getWorkspace(), $workspaces)) {
                $foundNodes = array_filter($foundNodes, function ($nodeData) use ($removedNode) {
                    return $nodeData !== $removedNode;
                });
            }
        }

        return $foundNodes;
    }
public function findByParentWithoutReduce ( $ parentPath , Workspace $ workspace ) { $ parentPath = strtolower ( $ parentPath ) ; $ workspaces = $ this -> collectWorkspaceAndAllBaseWorkspaces ( $ workspace ) ; $ queryBuilder = $ this -> createQueryBuilder ( $ workspaces ) ; $ this -> addParentPathConstraintToQueryBuilder ( $ queryBuilder , $ parentPath ) ; $ query = $ queryBuilder -> getQuery ( ) ; $ foundNodes = $ query -> getResult ( ) ; $ childNodeDepth = NodePaths :: getPathDepth ( $ parentPath ) + 1 ; /** @var $addedNode NodeData */ foreach ( $ this -> addedNodes as $ addedNode ) { if ( $ addedNode -> getDepth ( ) === $ childNodeDepth && NodePaths :: getParentPath ( $ addedNode -> getPath ( ) ) === $ parentPath && in_array ( $ addedNode -> getWorkspace ( ) , $ workspaces ) ) { $ foundNodes [ ] = $ addedNode ; } } /** @var $removedNode NodeData */ foreach ( $ this -> removedNodes as $ removedNode ) { if ( $ removedNode -> getDepth ( ) === $ childNodeDepth && NodePaths :: getParentPath ( $ removedNode -> getPath ( ) ) === $ parentPath && in_array ( $ removedNode -> getWorkspace ( ) , $ workspaces ) ) { $ foundNodes = array_filter ( $ foundNodes , function ( $ nodeData ) use ( $ removedNode ) { return $ nodeData !== $ removedNode ; } ) ; } } return $ foundNodes ; }
Find NodeData by parent path without any dimension reduction and grouping by identifier

Only used internally for setting the path of all child nodes

@param string $parentPath
@param Workspace $workspace
@return array<\Neos\ContentRepository\Domain\Model\NodeData> A unreduced array of NodeData
Find NodeData by parent path without any dimension reduction and grouping by identifier