コード例 #1
0
ファイル: ArquivoModel.php プロジェクト: hackultura/novosalic
 /**
  * 
  * @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();
     }
 }