/** * * @param int $idProrrogacao * @return object */ public function getProjeto($idProrrogacao) { $projetoTable = new Projetos(); $select = $projetoTable->select()->setIntegrityCheck(false)->from(array('projeto' => $projetoTable->info(Zend_Db_Table::NAME)), '*')->joinInner(array('prorrogacao' => $this->table->info(Zend_Db_Table::NAME)), 'prorrogacao.idPronac = projeto.idPRONAC', array())->where('idProrrogacao = ?', $idProrrogacao); $projetoTable->getDefaultAdapter()->setFetchMode(Zend_DB::FETCH_OBJ); return $projetoTable->getDefaultAdapter()->fetchRow($select); }