begin()

begin()

Begins a transaction
@return PhpBURN_Core

Params


EMPTY

Explanation


This method begins a database transaction, it’s only needed by databases that REQUIRE begin() transaction ( Oracle for example ). It’s mostly used with a commit() method.

The usage of this method is:


$model = new Model();

$model->begin();
$model->find();
$model->commit();