Files
money/vendor/j4mie/paris/docs/transactions.rst

21 lines
538 B
ReStructuredText
Raw Normal View History

2023-06-16 02:08:47 +00:00
Transactions
============
Paris (or Idiorm) doesnt supply any extra methods to deal with
transactions, but its very easy to use PDOs built-in methods:
.. code-block:: php
<?php
// Start a transaction
ORM::get_db()->beginTransaction();
// Commit a transaction
ORM::get_db()->commit();
// Roll back a transaction
ORM::get_db()->rollBack();
For more details, see `the PDO documentation on Transactions`_.
.. _the PDO documentation on Transactions: http://www.php.net/manual/en/pdo.transactions.php