public function rewind() { if ($this->result === FALSE) { throw new Nette\InvalidStateException('Nette\\Database\\ResultSet implements only one way iterator.'); } }