initial for idiorm

This commit is contained in:
Andrew Dolgov
2021-03-01 18:36:47 +03:00
parent f96abd2b52
commit f38be747d1
26 changed files with 5372 additions and 61 deletions
+21
View File
@@ -0,0 +1,21 @@
Transactions
============
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: https://secure.php.net/manual/en/pdo.transactions.php