eZ\Publish\Core\Persistence\Cache\TransactionHandler::commit PHP Method

commit() public method

Commit transaction, or throw exceptions if no transactions has been started.
public commit ( )
    public function commit()
    {
        $this->logger->logCall(__METHOD__);
        $this->persistenceHandler->transactionHandler()->commit();
    }

Usage Example

Example #1
0
 /**
  * Commit transaction
  *
  * Commit transaction, or throw exceptions if no transactions has been started.
  *
  * @throws \RuntimeException If no transaction has been started
  *
  * @deprecated Since 5.3 {@use transactionHandler()->beginTransaction()}
  */
 public function commit()
 {
     $this->transactionHandler->commit();
 }