public function getIterator() { if ($this->convertTypes) { return new ArrayIterator($this->fetchAll()); } else { return $this->execute(); } }