Phalcon Transactions and Nested Transactions

Transaction is supported in Phalcon as it is attached with PDO. To increase the performance of the database we can perform data manipulation. Below is the database structure on which transaction is applied:

Phalcon Transactions 1

Transaction example:

// Database 'Company' data deleted.

Nested Transaction Example:

// Database 'Company' data deleted.

Event NameTriggeredBreak Operation
afterConnectAfter a successfully connection to a database systemNo
beforeQueryBefore send a SQL statement to the database systemYes
afterQueryAfter send a SQL statement to database systemNo
beforeDisconnectBefore close a temporal database connectionNo
beginTransactionBefore a transaction is going to be startedNo
rollbackTransactionBefore a transaction is rollbackedNo
commitTransactionBefore a transaction is committedNo

Next TopicPhalcon PHQL




Latest Courses