Ver Mensaje Individual
  #2 (permalink)  
Antiguo 13/05/2009, 17:24
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: Seleccionar solamente algunas columnas con Zend_Db_Table

Al usar fetchAll regresas todos los registros, tu tendrías que hacer algo así:
Código php:
Ver original
  1. $aseguradoras = new Aseguradoras();
  2. $select = $aseguradoras->select()->from('Aseguradoras',array('id_aseguradora','aseguradora'));
  3. $db = $aseguradoras->getAdapter();
  4. $registros = $db->fetchAll($select)->toArray();

Saludos.