setRollbackOnly() public method

Marks the current transaction so that the only possible outcome for the transaction to be rolled back.
public setRollbackOnly ( ) : void
return void
Ejemplo n.º 1
0
 public function testSetRollbackOnlyNoActiveTransaction_ThrowsException()
 {
     $this->setExpectedException('Doctrine\\DBAL\\ConnectionException');
     $this->_conn->setRollbackOnly();
 }