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);
}