public function getIterator()
{
if ($this->_result === false) {
return new \EmptyIterator();
}
if (!isset($this->_iterator)) {
$this->_iterator = new ResultIterator($this->_result);
$this->_iterator->setHydrator($this->_hydrator);
}
return $this->_iterator;
}