Exemplo n.º 1
0
 /**
  * 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;
 }
Exemplo n.º 2
0
 public function nextModel()
 {
     $model = $this->_stmt->fetch();
     //		\GO::debugPageLoadTime("fetch");
     return $model;
 }