Pdo::inTransaction
Check whether a transaction is open
Description
public bool Pdo::inTransaction()
Returns true while a transaction opened with beginTransaction (by any instance, or by Model::transaction()) is open.
Example
Controller
$db = new \Fegg\Database\Pdo();
if (!$db->inTransaction()) {
$db->beginTransaction();
}