/** * Sets the pointer to row 1. * @return SqlResultIterator Returns itself for chaining. */ public function rewind() { if ($this->count() > 0) { $this->result->reset(); $this->currentKey = 0; $this->next(); } return $this; }