| Conditions | 4 |
| Paths | 3 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 68 | public function rollBack() |
||
| 69 | { |
||
| 70 | if ($this->transLevel == 0) { |
||
| 71 | throw new \LogicException('trying to rollback without a transaction-start', 25000); |
||
| 72 | } |
||
| 73 | |||
| 74 | $this->transLevel--; |
||
| 75 | |||
| 76 | if ($this->transLevel == 0 || !$this->nestable()) { |
||
| 77 | parent::rollBack(); |
||
| 78 | } else { |
||
| 79 | $this->exec("ROLLBACK TO SAVEPOINT LEVEL{$this->transLevel}"); |
||
| 80 | } |
||
| 81 | } |
||
| 82 | } |
||
| 83 |