Pdo::commit
Commit the open transaction
Description
public void Pdo::commit()
Commits the transaction opened with beginTransaction. Any instance can commit it. Throws LogicException when no transaction is open.
Example
Controller
$db = new \Fegg\Database\Pdo();
$db->beginTransaction();
$db->setValues(array('title' => 'A'))->insert('cms_news')->execute();
$db->commit();