public function prefetchReferences(ClassMetadata $class, NodeInterface $node)
    {
        $prefetch = $this->collectPrefetchReferences($class, $node);
        if (count($prefetch)) {
            $node->getSession()->getNodesByIdentifier($prefetch);
        }
    }
public function prefetchReferences(ClassMetadata $class, NodeInterface $node)
    {
        $prefetch = $this->collectPrefetchReferences($class, $node);
        if (count($prefetch)) {
            $node->getSession()->getNodesByIdentifier($prefetch);
        }
    }
public function prefetchReferences ( ClassMetadata $ class , NodeInterface $ node ) { $ prefetch = $ this -> collectPrefetchReferences ( $ class , $ node ) ; if ( count ( $ prefetch ) ) { $ node -> getSession ( ) -> getNodesByIdentifier ( $ prefetch ) ; } }
Prefetch all mapped ReferenceOne annotations.

@param ClassMetadata $class The metadata about the document to know what to do.
@param NodeInterface $node  The node to prefetch parent and childs for.
Prefetch all mapped ReferenceOne annotations .