Mvc\Model\Transaction\Manager::getOrCreateTransaction

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

Mvc\Model\Transaction\Manager::getDI

public getDI () Returns the dependency injection container

Mvc\Model\Transaction\Manager::getDbService

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

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::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\Failed::getRecordMessages

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

Mvc\Model\Transaction\Failed::getRecord

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

Mvc\Model\Transaction\Failed

extends class Phalcon\Mvc\Model\Transaction\Exception implements Throwable Source on GitHub This class will be thrown to exit a try/catch block for isolated transactions Methods public __construct (mixed $message, [Phalcon\Mvc\ModelInterface $record]) Phalcon\Mvc\Model\Transaction\Failed constructor public getRecordMessages () Returns validation record messages which stop the transaction public getRecord () Returns validation record messages which stop the transaction final private Exception __