commit() 공개 메소드

Commits statements in a transaction.
public commit ( $savepoint = NULL ) : void
리턴 void
예제 #1
0
 public final function run()
 {
     $this->dibiConnection->begin();
     try {
         parent::run();
     } catch (\Exception $e) {
         $this->dibiConnection->rollback();
         throw $e;
     }
     $this->dibiConnection->commit();
 }
예제 #2
0
 public function migrate(AbstractMigration $migration)
 {
     $this->connection->begin();
     try {
         if (!$this->hasSchemaTable()) {
             $this->getAdapter()->createSchemaTable();
             $this->hasSchemaTable = true;
         }
         $migration->run();
         $this->getAdapter()->log($migration, time());
     } catch (\Exception $e) {
         $this->connection->rollback();
         throw $e;
     }
     $this->connection->commit();
 }
예제 #3
0
파일: BaseMapper.php 프로젝트: svatekr/rsrs
 public function commit()
 {
     $this->db->commit();
 }