Vendor lock
This commit is contained in:
21
vendor/j4mie/idiorm/docs/transactions.rst
vendored
Normal file
21
vendor/j4mie/idiorm/docs/transactions.rst
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
Transactions
|
||||
============
|
||||
|
||||
Idiorm doesn’t supply any extra methods to deal with transactions, but
|
||||
it’s very easy to use PDO’s 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
|
Reference in New Issue
Block a user