|
@@ 53-55 (lines=3) @@
|
| 50 |
|
{ |
| 51 |
|
$itemsCollection = $this->matchItems('restore', $step); |
| 52 |
|
|
| 53 |
|
if (count($itemsCollection) > 1 && array_key_exists('references', $step->dsl)) { |
| 54 |
|
throw new \Exception("Can not execute Trash restore because multiple types match, and a references section is specified in the dsl. References can be set when only 1 section matches"); |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
$locations = array(); |
| 58 |
|
$trashService = $this->repository->getTrashService(); |
|
@@ 75-77 (lines=3) @@
|
| 72 |
|
{ |
| 73 |
|
$itemsCollection = $this->matchItems('delete', $step); |
| 74 |
|
|
| 75 |
|
if (count($itemsCollection) > 1 && array_key_exists('references', $step->dsl)) { |
| 76 |
|
throw new \Exception("Can not execute Trash restore because multiple types match, and a references section is specified in the dsl. References can be set when only 1 section matches"); |
| 77 |
|
} |
| 78 |
|
|
| 79 |
|
$this->setReferences($itemsCollection, $step); |
| 80 |
|
|