/** * Fetch the next record from the PDO statement. * Format it using the _columnModel's formatMode() function * Or return false if there are no more records * @return \GO\Base\Db\ActiveRecord */ public function nextRecord() { if (!isset($this->_stmt)) { $this->_stmt = $this->createStatement(); } $model = $this->_stmt->fetch(); return $model ? $this->_columnModel->formatModel($model) : false; }
public function nextModel() { $model = $this->_stmt->fetch(); // \GO::debugPageLoadTime("fetch"); return $model; }