/** * * @return \ZendT_Db_Recordset */ public function getRecordSet() { $stmt = $this->_table->getAdapter()->query($this->getSql()); $obj = new ZendT_Db_Recordset($stmt, $this->_mappers, true); if (count($this->_replaceAlias) > 0) { foreach ($this->_replaceAlias as $key => $value) { $obj->addReplaceAlias($key, $value); } } return $obj; }
public function fetchAll() { $sql = $this->sqlBase(); $query = new ZendT_Db_Recordset($this->_table->getAdapter()->query($sql, $this->_binds), $this->_columnsMapper); return $query->getRows(); }