Ejemplo n.º 1
0
 /**
  * Fetches all SQL result rows as an associative array.
  *
  * The first column is the key, the entire row array is the
  * value. You should construct the query to be sure that
  * the first column contains unique values, or else
  * rows with duplicate values in the first column will
  * overwrite previous data.
  *
  * @param string|EhrlichAndreas_Db_Select|Zend_Db_Select $sql
  *            An SQL SELECT statement.
  * @param mixed $bind
  *            Data to bind into SELECT placeholders.
  * @return array
  */
 public function fetchAssoc($sql, $bind = array())
 {
     return $this->adapter->fetchAssoc($sql, $bind);
 }