Transaction

Hi,

I’ve got a problem. The same execute ‘xx->save();’, it works when I put it out of the transaction block. But if I put it in the transaction block, as below, it doesn’t work any more. Why?




$transaction = $connection->beginTransaction();

try {

	xx->save();

} catch (Exception $e) {

		        	

	$transaction->rollBack();

}



Did you forget $transaction->commit() ?

omg, i forgot. im suck on this for hours lol

thank you!