RedBeanPHP\Adapter\DBAdapter::commit PHP Method

commit() public method

See also: Adapter::commit
public commit ( )
    public function commit()
    {
        $this->db->CommitTrans();
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Facade Convience method for adapter transaction system.
  * Commits a transaction.
  *
  * @return bool
  */
 public static function commit()
 {
     if (!self::$redbean->isFrozen()) {
         return FALSE;
     }
     self::$adapter->commit();
     return TRUE;
 }