Nette\Database\Context::commit PHP 메소드

commit() 공개 메소드

public commit ( ) : void
리턴 void
    public function commit()
    {
        $this->connection->commit();
    }

Usage Example

 public function actionDefault()
 {
     try {
         $this->db->beginTransaction();
         $this->db->table('addons_resources')->delete();
         foreach ($this->db->table('addons') as $addon) {
             $this->updateAddon($addon);
         }
         $this->db->commit();
     } catch (\PDOException $e) {
         Debugger::log($e);
         $this->db->rollBack();
     }
 }
All Usage Examples Of Nette\Database\Context::commit