Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function run(?bool $verbose = false) |
||
24 | { |
||
25 | if ($this->hasBeenDeleted()) { |
||
26 | $query = $this->getBaseQuery() |
||
27 | ->addWhere(['"RecordID" = ?' => $this->object->ID]) |
||
28 | ; |
||
29 | //starting from "keepVersions" - going backwards in time |
||
30 | $this->toDelete[$this->getUniqueKey()] += $this->addVersionNumberToArray( |
||
31 | $this->toDelete[$this->getUniqueKey()], |
||
32 | $query->execute() |
||
33 | ); |
||
47 |