Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | protected function execute() |
||
11 | { |
||
12 | $conditions = $this->getConditions(); |
||
13 | |||
14 | if (empty($conditions)) { |
||
15 | return; |
||
16 | } |
||
17 | |||
18 | $delete = new \Sirius\Sql\Delete($this->mapper->getWriteConnection()); |
||
19 | $delete->from($this->mapper->getTable()); |
||
20 | $delete->whereAll($conditions, false); |
||
21 | |||
22 | $delete->perform(); |
||
23 | } |
||
33 |