/** * * @return Zend_Db_Table_Row * @throws BadMethodCallException */ public function buscar() { if (null === $this->getId()) { throw new BadMethodCallException('Informe o id do arquivo'); } $arquivoModel = new Arquivo(); $arquivoRowset = $arquivoModel->buscar(array('idArquivo = ?' => $this->getId())); if ($arquivoRowset->count()) { return $arquivoRowset->current(); } }