| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function removeEntity( EntityDocument $entity ) { |
||
| 27 | $inserter = $this->getEntityRemoverFor( $entity ); |
||
| 28 | |||
| 29 | $this->connection->beginTransaction(); |
||
| 30 | |||
| 31 | try { |
||
| 32 | $inserter->removeEntity( $entity ); |
||
| 33 | } |
||
| 34 | catch ( QueryEngineException $ex ) { |
||
| 35 | $this->connection->rollBack(); |
||
| 36 | throw $ex; |
||
| 37 | } |
||
| 38 | |||
| 39 | $this->connection->commit(); |
||
| 40 | } |
||
| 41 | |||
| 58 |