Table Of ContentsPrevious topic< Interface Phalcon\Mvc\Model\ResultsetInterface Next topic |
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 |