Jackalope\Query\QueryResult::getNodes PHP Method

getNodes() public method

{@inheritDoc}
public getNodes ( $prefetch = false )
    public function getNodes($prefetch = false)
    {
        if ($prefetch !== true) {
            return $this->factory->get('Query\\NodeIterator', array($this->objectmanager, $this->rows));
        }
        $paths = array();
        foreach ($this->getRows() as $row) {
            $paths[] = $row->getPath();
        }
        return $this->objectmanager->getNodesByPath($paths);
    }