tags:

views:

628

answers:

1

is it possible (how) to use mysql transactions and rollbacks using kohana ORM ?

+2  A: 

Check out the official forums. It shows an example on how to use transactions with Ko3:

$db->query(NULL, 'TRANSACTION START');  
// Do stuff  
$db->query(NULL, 'COMMIT');

How to do it with version 2, I don't know. I'm still new to kohana myself, and learning Ko3 rather than 2. But I'm guessing it's quite similar.

Caspar
merely, i have to use it with 2.4
gpilotino
I can confirm that this also works with 2.3.4
Cocowalla