Doctrine\DBAL\Connection::setRollbackOnly
Marks the current transaction so that the only possible outcome for the transaction to be rolled back.
Signature
public function setRollbackOnly()
Errors/Exceptions
-
ConnectionException
- If no transaction is active.