Merge pull request #1563 from rawkode/bugfix/incorrect-rollback-method-name
Fixing method name 'rollBack', which was documented as 'rollback'
This commit is contained in:
commit
1697293591
@ -75,7 +75,7 @@ looks like this:
|
||||
$em->flush();
|
||||
$em->getConnection()->commit();
|
||||
} catch (Exception $e) {
|
||||
$em->getConnection()->rollback();
|
||||
$em->getConnection()->rollBack();
|
||||
throw $e;
|
||||
}
|
||||
|
||||
|
@ -238,7 +238,7 @@ use Doctrine\Common\Util\ClassUtils;
|
||||
return $return ?: true;
|
||||
} catch (Exception $e) {
|
||||
$this->close();
|
||||
$this->conn->rollback();
|
||||
$this->conn->rollBack();
|
||||
|
||||
throw $e;
|
||||
}
|
||||
@ -257,7 +257,7 @@ use Doctrine\Common\Util\ClassUtils;
|
||||
*/
|
||||
public function rollback()
|
||||
{
|
||||
$this->conn->rollback();
|
||||
$this->conn->rollBack();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -402,7 +402,7 @@ class UnitOfWork implements PropertyChangedListener
|
||||
$conn->commit();
|
||||
} catch (Exception $e) {
|
||||
$this->em->close();
|
||||
$conn->rollback();
|
||||
$conn->rollBack();
|
||||
|
||||
$this->afterTransactionRolledBack();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user