Skip to content

Commit

Permalink
🐛 #118 correção geração
Browse files Browse the repository at this point in the history
  • Loading branch information
bjverde committed Sep 28, 2022
1 parent 4015bd7 commit 5deb41d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/CreateControllers.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ private function addSave()
$this->addLine(ESP.'{');
$this->addLine(ESP.ESP.'$result = null;');
$this->addLine(ESP.ESP.'if( $objVo->get'.$columunPK.'() ) {');
$this->addLine(ESP.ESP.'$this->validatePkNotExist( $id );');
$this->addLine(ESP.ESP.ESP.'$this->validatePkNotExist( $objVo->get'.$columunPK.'() );');
$this->addLine(ESP.ESP.ESP.'$result = $this->dao->update( $objVo );');
$this->addLine(ESP.ESP.'} else {');
$this->addLine(ESP.ESP.ESP.'$result = $this->dao->insert( $objVo );');
Expand Down

0 comments on commit 5deb41d

Please sign in to comment.