Ver Mensaje Individual
  #3 (permalink)  
Antiguo 26/10/2011, 09:48
Avatar de ApipeMc
ApipeMc
 
Fecha de Ingreso: septiembre-2010
Ubicación: Medellín, Antioquia, Colombia
Mensajes: 76
Antigüedad: 13 años, 7 meses
Puntos: 1
Respuesta: Consulta de Join con Zend Framework

Ya le he intentado pero me sale el siguiente error.

Código PHP:
Ver original
  1. $select = $this->select()
  2.                        ->from(array('p'  => 'projects'))                       
  3.                            ->join(array('pm' => 'permissions'),'p.Id_Permission = pm.Id_Permission', array('pm.Description' =>'Description'))
  4.                            ->join(array('l'  => 'languages'),  'p.Id_Language   = l.Id_Language',array())                                                  
  5.                        ->where('p.Id_User_Project = '.(int)$id)
  6.                        ->where('p.State_Project = 1')
  7.                        ->where('pm.State_Permission = 1')
  8.                        ->where('l.State_Language = 1');

Warning: Select query cannot join with another table