Interface Phalcon\Mvc\Model\TransactionInterface
Phalcon\Mvc\Model\TransactionInterface initializer
Methods
abstract public setTransactionManager (Phalcon\Mvc\Model\Transaction\ManagerInterface $manager)
Sets transaction manager related to the transaction
abstract public boolean begin ()
Starts the transaction
abstract public boolean commit ()
Commits the transaction
abstract public boolean rollback ([string $rollbackMessage], [Phalcon\Mvc\ModelInterface $rollbackRecord])
Rollbacks the transaction
abstract public string getConnection ()
Returns connection related to transaction
abstract public setIsNewTransaction (boolean $isNew)
Sets if is a reused transaction or new once
abstract public setRollbackOnAbort (boolean $rollbackOnAbort)
Sets flag to rollback on abort the HTTP connection
abstract public boolean isManaged ()
Checks whether transaction is managed by a transaction manager
abstract public array getMessages ()
Returns validations messages from last save try
abstract public boolean isValid ()
Checks whether internal connection is under an active transaction
abstract public setRollbackedRecord (Phalcon\Mvc\ModelInterface $record)
Sets object which generates rollback action
© 2011–2016 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/2.0.0/api/Phalcon_Mvc_Model_TransactionInterface.html