xPDO.rollBack
Последнее обновление Oct 17th, 2026 | История страницы | Улучшить эту страницу | Сообщить о проблеме
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$194 per month—let's make that $500!
Learn morexPDO::rollBack¶
Откатывает текущую транзакцию. Возвращает false, если соединение недоступно, иначе — результат базового PDO::rollBack().
Синтаксис¶
boolean rollBack ()
Пример¶
$xpdo->beginTransaction();
try {
// ... write operations ...
$xpdo->commit();
} catch (Exception $e) {
$xpdo->rollBack();
}
Смотрите также¶
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$194 per month—let's make that $500!
Learn more










