2011-04-08 93 views

回答

0
$Zonas = $this->Zona->find('all', array(
      'joins' => array(
       array(
        'table' => 'plantas', 
        'type' => 'INNER', 
        'conditions' => array(
         'Zona.id = plantas.zona_id' 
        ) 
       ), 
       array(
        'table' => 'equipos_computo', 
        'type' => 'INNER', 
        'conditions' => array(
         'plantas.id = equipos_computo.planta_id ' 
        ) 
       ) 
      ) 
     ));