Commit cf30ed5e0c3a8bc45c204ccfa625c3f683498dcf
1 parent
37ac9f64
Exists in
master
and in
19 other branches
[issue #10] Adequação de rotina de gravação de dados de andamento
Fixed #10
Showing
1 changed file
with
1 additions
and
5 deletions
Show diff stats
rn/ProcedimentoAndamentoRN.php
... | ... | @@ -62,7 +62,7 @@ class ProcedimentoAndamentoRN extends InfraRN { |
62 | 62 | * @param string $strSituacao Tipo ENUM(S,N) |
63 | 63 | * @return null |
64 | 64 | */ |
65 | - public function cadastrar($strMensagem = 'Não informado', $strSituacao = 'N'){ | |
65 | + protected function cadastrarControlado($strMensagem = 'Não informado', $strSituacao = 'N'){ | |
66 | 66 | |
67 | 67 | if($this->isSetOpts === false) { |
68 | 68 | throw new InfraException('Log do cadastro de procedimento não foi configurado'); |
... | ... | @@ -70,8 +70,6 @@ class ProcedimentoAndamentoRN extends InfraRN { |
70 | 70 | |
71 | 71 | $objInfraIBanco = $this->inicializarObjInfraIBanco(); |
72 | 72 | |
73 | - $objInfraIBanco->abrirTransacao(); | |
74 | - | |
75 | 73 | $hash = md5($this->dblIdProcedimento.$strMensagem); |
76 | 74 | |
77 | 75 | $objProcedimentoAndamentoDTO = new ProcedimentoAndamentoDTO(); |
... | ... | @@ -86,7 +84,5 @@ class ProcedimentoAndamentoRN extends InfraRN { |
86 | 84 | |
87 | 85 | $objProcedimentoAndamentoBD = new ProcedimentoAndamentoBD($objInfraIBanco); |
88 | 86 | $objProcedimentoAndamentoBD->cadastrar($objProcedimentoAndamentoDTO); |
89 | - | |
90 | - $objInfraIBanco->confirmarTransacao(); | |
91 | 87 | } |
92 | 88 | } | ... | ... |