Mvc\Model\Transaction\Manager::commit

public commit () Commits active transactions within the manager

Mvc\Model\Transaction\Manager::collectTransactions

public collectTransactions () Remove all the transactions from the manager

Mvc\Model\Transaction\Manager

implements Phalcon\Mvc\Model\Transaction\ManagerInterface, Phalcon\Di\InjectionAwareInterface Source on GitHub A transaction acts on a single database connection. If you have multiple class-specific databases, the transaction will not protect interaction among them. This class manages the objects that compose a transaction. A transaction produces a unique connection that is passed to every object part of the transaction. try { use Phalcon\Mvc\Model\Transaction\Manager as TransactionManager;

Mvc\Model\Transaction\Manager::getDI

public getDI () Returns the dependency injection container

Mvc\Model\Transaction\Manager::get

public get ([mixed $autoBegin]) Returns a new \Phalcon\Mvc\Model\Transaction or an already created once This method registers a shutdown function to rollback active connections

Mvc\Model\Transaction\Manager::getDbService

public string getDbService () Returns the database service used to isolate the transaction

Mvc\Model\Transaction\Manager::getOrCreateTransaction

public getOrCreateTransaction ([mixed $autoBegin]) Create/Returns a new transaction or an existing one

Mvc\Model\TransactionInterface::setTransactionManager

abstract public setTransactionManager (Phalcon\Mvc\Model\Transaction\ManagerInterface $manager) ...

Mvc\Model\Transaction\Exception

extends class Phalcon\Mvc\Model\Exception implements Throwable Source on GitHub Methods final private Exception __clone () inherited from Exception Clone the exception public __construct ([string $message], [int $code], [Exception $previous]) inherited from Exception Exception constructor public __wakeup () inherited from Exception ... final public string getMessage () inherited from Exception Gets the Exception message final public int getCode () inherited from Exception Gets the Exceptio

Mvc\Model\Transaction\Failed::getRecord

public getRecord () Returns validation record messages which stop the transaction