$result = array(); $query = (Array) $query; try { \DB::start_transaction(); foreach ($query as $subquery) { $result[] = \DB::query($subquery)->execute(); } \DB::commit_transaction(); return $result; } catch (Exception $ex) { \DB::rollback_transaction(); throw $ex; }I get the error Message:
ErrorException [ Error ]: Call to a member function beginTransaction() on a non-objectin:
COREPATH/classes/database/pdo/connection.php @ line 217
$this->_connection or $this->connect();I added a ticket on github and they already fixed it in the core.
It looks like you're new here. If you want to get involved, click one of these buttons!