select('codPays, libPaysEN') ->from('Tabpays') ->orderBy('libPaysEN ASC') ->setHydrationMode(Doctrine::HYDRATE_ARRAY); $tabPaysComplete = $q->execute(); //Lecture des pays graydon setDbConn('graydon'); $q = Doctrine_Query::Create() ->select('code') ->from('Country') ->where('status = "actif"') ->setHydrationMode(Doctrine::HYDRATE_ARRAY); $result = $q->execute(); $tabPaysGraydon == array(); if(count($result)>0) foreach($result as $item){ $tabPaysGraydon[] = $item['code']; } //Lecture des pays intersud setDbConn('intersud'); $q = Doctrine_Query::Create() ->select('code') ->from('Country') ->where('status = "actif"') ->setHydrationMode(Doctrine::HYDRATE_ARRAY); $result = $q->execute(); $tabPaysIntersud == array(); if(count($result)>0) foreach($result as $item){ $tabPaysIntersud[] = $item['code']; } ?>